Posted By

kenjosan on 05/27/11


Tagged

css


Versions (?)

nav - css


 / Published in: CSS
 

  1. #nav {
  2. border-bottom:5px solid #e3e3e3;
  3. padding:5px 0;
  4. margin:0;
  5. border-top:5px solid #ccc;
  6. height:30px;
  7. }
  8.  
  9. #nav li {
  10. float:left;
  11. list-style:none;
  12. }
  13.  
  14. #nav li a {
  15. color:black;
  16. padding:5px 5px 6px 5px;
  17. background:yellow;
  18. margin:2px 10px 0 0;
  19. text-decoration:none;
  20. display:block;
  21. }
  22. #nav li a:hover {
  23. background-color:orange;
  24. color:white;
  25. text-decoration:none;
  26. }
  27.  
  28. #nav li a.active {
  29. background-color:lightblue;
  30. color:black;
  31. text-decoration:none;
  32. }

Report this snippet  

You need to login to post a comment.