02-01-folders.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Simple menu styling</title>
  6. <style>
  7. /* some basic font styles */
  8. body {
  9. font-family: 'Avenir Next', SegoeUI, Arial, sans-serif;
  10. }
  11. /* Reset rules: not strictly part of the example, so not in the book. */
  12. ul {
  13. list-style: none;
  14. padding-left: 1em;
  15. }
  16. /**
  17. * Set background image properties and some padding to allow space for img.
  18. * We'll come back to the details of these properties later on in the book.
  19. */
  20. #nav > li {
  21. background: url(img/folder.png) no-repeat left top;
  22. padding-left: 20px;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <ul id="nav">
  28. <li><a href="/home/">Home</a></li>
  29. <li><a href="/services/">Services</a>
  30. <ul>
  31. <li><a href="/services/design/">Design</a></li>
  32. <li><a href="/services/development/">Development</a></li>
  33. <li><a href="/services/consultancy/">Consultancy</a></li>
  34. </ul>
  35. </li>
  36. <li><a href="/contact/">Contact Us</a></li>
  37. </ul>
  38. </body>
  39. </html>