Grow your CSS skills. Land your dream job.

nav not full width of parent

  • # June 17, 2013 at 3:53 pm

    Hello, I am fiddeling with this nav menu and I can’t seem to get the #nav to fit 100% of the #menu.

    http://codepen.io/mdrd88/pen/krxzs

    I just need to black part to fill the width, not neccesarily the height of the white border. Thank you for your help!

    # June 17, 2013 at 3:56 pm

    As in:

    #nav {
    padding: 0;
    margin: 0;
    }

    ?

    # June 17, 2013 at 4:07 pm

    *Bow’s head in shame

    I tried #nav padding 0 but not both margin and padding. Thank you! Overlooked that one!

    # June 17, 2013 at 4:07 pm

    No problem ;)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".