Click here to Skip to main content
15,878,871 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello. The design of the navigational bar so far is correct. However, the one issue which I now have, Is that the buttons will not stretch/be positioned across the entire nav-bar, with equal space between them. Attached is the current navigation bar, and Facebook's navigational bar. I also created a 'Fiddle' for you to see my current code // https://jsfiddle.net/6avtbqzh/


Navigation Bar at the moment // [IMG]http://oi58.tinypic.com/2z3wfuu.jpg [/IMG]
A little how I want it to be // [IMG]http://oi60.tinypic.com/w2ee0y.jpg [/IMG]

Please fix this, or inform me of how to.
Thanks, Reece.

Note: I am 15, and new to this. It's the holiday and I learn best by making things hand-on. So here I am, attempting to make a website for the primary use of self-education.
Posted

1 solution

C#
li {
    float: left;
    width: 20%; /* 5(li) x 20(each) - [ left & right borders, padding, margin ] = 100% */
...
}


CSS
a:link, a:visited {
    display: block;
    width: 100%;
...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900