Search the Community
Showing results for tags 'ul'.
-
Hello All, I was wondering if anyone could tell me how to equally distribute left and right margin to a navigation bar element built with an unordered list. I want to be able to add elements to the nav bar using PHP and have the margin between the elements on the the left and right side be equally distributed. Thanks in advance.
- 1 reply
-
- navigation
- ul
-
(and 3 more)
Tagged with:
-
Hello All, I was wondering if anyone had some fluid techniques for nav bars. I want to evenly distribute each li in the nav bar and have them be fluid. Structure like the following: <nav id="nav" class="width"> <div id="slide" class="body"> <ul id="bar"> <li><a href="#">NEWS</a></li> <li><a href="#">SPORTS</a></li> <li><a href="#">OPINION</a></li> <li><a href="#">LIFESTYLES</a></li> <li><a href="#">A&E</a></li> <li><a href="#">BLOG</a></li> <li><a href="#">ABOUT</a></li> </ul> </div> </nav> the width class is 100% and the body is 80% centered with the margin 0px auto. I need to know the padding for each li to make it fluid and evenly distributed through the ul bar. Thanks in advance!