code_junkie

CSS Borderless tabs using images

Nov 12th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <style>
  2. ul.tabs {
  3. border-bottom: 1px solid blue;
  4. height: 20px;
  5. margin: 0;
  6. padding: 0;
  7. list-style-type: none;
  8. }
  9. ul.tabs li {
  10. float: left;
  11. position: relative;
  12. bottom: 5px;
  13. margin: 0;
  14. padding: 0;
  15. }
  16. ul.tabs li img {
  17. float: left;
  18. height: 20px;
  19. width: 50px;
  20. border: none;
  21. }
  22. ul.tabs li.selected {
  23. bottom: -1px;
  24. }
  25. </style>
  26.  
  27. <ul class="tabs">
  28. <li><a href=""><img src="tab1.gif" /></a></li>
  29. <li class="selected"><a href=""><img src="tab2.gif" /></a></li>
  30. <li><a href=""><img src="tab3.gif" /></a></li>
  31. </ul>
Add Comment
Please, Sign In to add comment