Posted By

spcmnk7 on 05/23/11


Tagged

menu float center horizontal navbar


Versions (?)

Center horizontal float menu


 / Published in: CSS
 

  1. #centeredmenu {
  2. float:left;
  3. width:100%;
  4. background:#fff;
  5. overflow:hidden;
  6. position:relative;
  7. }
  8. #centeredmenu ul {
  9. clear:left;
  10. float:left;
  11. list-style:none;
  12. margin:0;
  13. padding:0;
  14. position:relative;
  15. left:50%;
  16. text-align:center;
  17. }
  18. #centeredmenu ul li {
  19. display:block;
  20. float:left;
  21. list-style:none;
  22. margin:0;
  23. padding:0;
  24. position:relative;
  25. right:50%;
  26. }

Report this snippet  

You need to login to post a comment.