×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
1
Language: CSS
Posted by: Riccardo di Biase
Added: Mar 7, 2013 11:58 AM
Modified: Mar 7, 2013 12:03 PM
Views: 30
Tags: css menu
css horizontal menu with float
  1. <style>
  2. ul
  3. {
  4. float:left;
  5. width:100%;
  6. padding:0;
  7. margin:0;
  8. list-style-type:none;
  9. }
  10. a
  11. {
  12. float:left;
  13. width:6em;
  14. text-decoration:none;
  15. color:white;
  16. background-color:purple;
  17. padding:0.2em 0.6em;
  18. border-right:1px solid white;
  19. }
  20. a:hover {background-color:#ff3300;}
  21. li {display:inline;}
  22. </style>