Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Remove the border and padding that you’ve given to this element:

    <div class="wrap">

    Make sure you do this only to that element that surrounds the secondary menu (by using more specific selectors).

    Thread Starter [email protected]

    (@nicholastgoodwingmailcom)

    Ah. I see what you mean. I have this code in my custom stylesheet:

    .wrap {
    background-color: #f2f8f1;
    margin: 0 auto;
    max-width: 940px;
    border-left: 10px solid #367D28;
    border-right: 10px solid #367D28;
    padding: 0 30px;
    position: relative;
    }

    BUT, I don’t know how to “do this only to that element that surrounds the secondary menu.” I’m a css newbie. Any tips?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Use this CSS:

    #menu-secondary .wrap {
     border: none;
     padding: 0;
    }

    Thread Starter [email protected]

    (@nicholastgoodwingmailcom)

    AH. Thank you so much! It’s perfect.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Black secondary menu is aligning incorrectly’ is closed to new replies.