Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2013
    Location
    Bristol, UK
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Making Navigation Menu fit the width of container

    Hi,
    My site is here http://creatrixtest.com/scarlett/

    I'm looking to fit the navigation bar across the width of the container - not so it aligns left as it is at the moment.

    Can anyone help?

  • #2
    Regular Coder
    Join Date
    Dec 2010
    Posts
    134
    Thanks
    17
    Thanked 6 Times in 6 Posts
    You won't get it perfect unless you have fixed width li's.

    I would:

    Code:
    .main-navigation li{
        float:left;
        margin:0 8px 0 0;
    }
    Now that gets them near on spread, but if not then add.

    Code:
    .main-navigation li:last-child{
        float:right;
    }


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •