• Resolved bryantran1807

    (@bryantran1807)


    Pls help me, i don’t understand about before, after …
    I have a nice code to make widget better. I don’t want to add to style.css.

    Thanks so much

    .sidebar .widget-title:before {
        border-bottom: 15px solid #005D87;
        border-left: 20px solid rgba(0, 0, 0, 0);
        content: "";
        display: block;
        height: 0;
        left: 0;
        position: absolute;
        top: -15px;
        width: 0;
        z-index: 0;
    }
    
    .sidebar .widget-title:after {
        border-bottom: 15px solid #005D87;
        border-right: 20px solid rgba(0, 0, 0, 0);
        content: "";
        display: block;
        height: 0;
        position: absolute;
        right: 0;
        top: -15px;
        width: 0;
        z-index: 0;
    }
    
    .sidebar .widget-title {
        background: none repeat scroll 0 0 #0074A2;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        color: #FFFFFF;
        display: inline-block;
        font-size: 1.25em;
        line-height: 2.5em;
        margin: 0 0 0 -3.05em;
        min-height: 50px;
        position: relative;
        width: 400px;
        z-index: 10;
        margin-top: -25px;
        font-weight: bold;
        text-align: center;
    }

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This topic was modified 9 years, 3 months ago by bdbrown.
    • This topic was modified 9 years, 3 months ago by bdbrown.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to insert this code to widget title ?’ is closed to new replies.