Posted By

BebenKoben on 02/29/12


Tagged

html


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

bug5


Very Simple Menu


 / Published in: HTML
 

Simple Menu HTML

  1. CSS COded
  2.  
  3. .nav {
  4. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAnCAYAAADO4CKiAAAAj0lEQVQImWWMuw3CQBQENyIjoR4KoA9EQEQbRITU4JQ6/JNPfrJ8On/OgekBIQ/JZSSjnWBHWZahdV1RURQoz/O0yrJEVVWhuq5R0zTIOYfatkVmhrquQ33fI+89CiGgYRgSxnFE0zSheZ5RjBEty5I0hJC+Zpby/vVE2+2Avvcj4qI/bNcd+jxO6H3eI4AfnNF/gVl2jIcAAAAASUVORK5CYII=") repeat-x top left;
  5. width: 100%;
  6. height: 40px;
  7. margin: 0 auto;
  8. display: block;
  9. }
  10. .nav .menu {
  11. margin:0 5px;
  12. }
  13. .nav .menu ul {
  14. list-style-type: none;
  15. float: left;
  16. }
  17. .nav .menu li {
  18. display: block;
  19. margin: 0;
  20. }
  21. .nav .menu li a {
  22. height: 38px;
  23. line-height: 28px;
  24. display: block;
  25. float: left;
  26. padding: 0 10px;
  27. font-weight: 700;
  28. font-size:90%;
  29. }
  30. .nav .menu li a.current {
  31. padding: 0px 10px;
  32. }
  33. .nav .menu li a {
  34. color: #333;
  35. }
  36. .nav .menu li a:hover {
  37. color: #fff;
  38. background: #f60;
  39. height: 38px;
  40. }
  41. .nav .menu li a.current {
  42. color: #fff;
  43. background: #f60;
  44. }
  45.  
  46. Markup HTML
  47.  
  48. <div class="nav">
  49. <ul class="menu">
  50. <li><a class="current" title="" href="#">Current</a></li>
  51. <li><a title="" href="#">Menu 1</a></li>
  52. <li><a title="" href="#">Menu 2</a></li>
  53. <li><a title="" href="#">Menu 3</a></li>
  54. <li><a title="" href="#">Menu...</a></li>
  55. </ul>
  56. </div>

Report this snippet  

You need to login to post a comment.