Advertisement
MrsMcLead

Nested Lists

Feb 12th, 2014
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.51 KB | None | 0 0
  1. <html>
  2. <head>
  3.  
  4. <title>
  5. Nested Lists
  6. </title>
  7.  
  8. <style type="text/css">
  9.  
  10. body{background-color: White}
  11.  
  12. body{font-size: 20px; margin: 0;padding: 0%}
  13.  
  14.  
  15. /*--Below is the ids that control the divisions within the body of our html file--*/
  16. #header{height: 15%; margin-top: 1pt; padding-top: 1pt;}
  17.  
  18. #ptitle{background-color: #ff9900; float: right; clear: left; width: 100%;
  19.  
  20. font-size: 35pt; font-weight: bold; text-align: center; font-style: italic; text-decoration: underline;}
  21.  
  22. #left{float: left; width: 20%; height: 75%; background-color: #e6ff00; font-size: 15pt;
  23.     padding: 10pt; color: white;}
  24.    
  25. #right{float: left; width: 65%; height: 75%; padding: 10pt; color: #e6ff00;}
  26.  
  27.  
  28. /*--Below is the CSS that controls the Navigation Links--*/
  29.  
  30. /*--This is the CSS code that makes the 2nd Level of Unorderd list items disappear--*/
  31. li ul{display: none;}
  32.  
  33. /*--This is the CSS code that makes the 2nd Level of Unordered list items reappear once you
  34. hover over them--*/
  35. li:hover ul{display: block;}
  36.  
  37. /*--This piece of code controls the 1st Level of Unordered List items--*/
  38. #navitems li{list-style-type: none; float: left; width: 60mm; text-align: center;
  39. align: top;}
  40.  
  41. /*--This piece of CSS fixes the 1st Level of Unordered List items' position relative to each other--*/
  42. #navitems li{position: relative;}
  43.  
  44. /*--This piece of CSS fixes the 2nd Level of Unorderd list items’ position absolute--*/
  45. #navitems li ul{position: absolute;}
  46.  
  47.  
  48. /*--This piece of CSS code controls the look of the text within the link--*/
  49. #navitems a{text-decoration: none; color: white; display: block; background-color: #ffcc33;
  50. border:1px black solid;}
  51.  
  52.  
  53. /*--This piece of CSS code controls how our links look once the cursor is over them.--*/
  54. #navitems a:hover{color: red;} 
  55.  
  56.  
  57. /*--Below is the class that is controlling the look of the 1st layer of list itmes, the titles for the
  58. drop down menus.--*/
  59.  
  60. .lititles{background-color: #ff9900; border: 1px black solid; border-bottom: none;}
  61.  
  62.  
  63. </style>
  64.  
  65.  
  66. </head>
  67.  
  68. <body>
  69. <!---This is the header division in our html file-->
  70. <nav>
  71. <div id="header">
  72.  
  73. <div id="navitems">
  74. <ul>
  75. <li class="lititles">CSS Intro Lessons
  76.     <ul>
  77.     <li><a href="link1.html">
  78.         CSS Introduced</a>
  79.     <li><a href="link2.html">
  80.         CSS Classes</a>    
  81.     <li><a href=link3.html">
  82.         CSS Assigned Values</a>    
  83.     <li><a link4.html">
  84.         CSS Background Images</a>  
  85.     <li><a href="link5.html">
  86.         CSS Text Properties</a>
  87.     </ul>
  88. </li>
  89. <li class="lititles">Page Layout Lessons
  90.     <ul>
  91.     <li><a href="link6.html">
  92.         CSS Box Properties</a> 
  93.     <li><a href="link7.html">
  94.         CSS The Great Divide</a>   
  95.     <li><a href="link8.html">
  96.         Creating Forms</a> 
  97.     </ul>
  98. </li>
  99. <li class="lititles">CSS List Lessons
  100.     <ul>
  101.     <li><a href="link9.html">
  102.         CSS Lists</a>  
  103.     <li><a href="link10.html">
  104.         CSS Horizontal Lists</a>       
  105.     </ul>
  106. </li>
  107. <li class="lititles">Hexa Color Websites
  108.     <ul>
  109.     <li><a href="http://www.colorpicker.com/">
  110.         Colorpicker.com</a>
  111.     <li><a href="http://www.colorhexa.com/">
  112.         ColorHexa.com</a>      
  113.     <li><a href="http://www.w3schools.com/tags/ref_colorpicker.asp">
  114.         HTML Color Picker</a>      
  115.     <li><a href="http://html-color-codes.com/">
  116.         Html-Color-Codes.com</a>
  117.     </ul>  
  118. </li>
  119. </ul>
  120. </div>
  121.  
  122.  
  123. <div id="ptitle">
  124. <p>
  125. Nested Lists
  126. </p>
  127. </div>
  128.  
  129. </div> 
  130. </nav>
  131.  
  132.  
  133. <!--This is left division in our html file-->
  134. <div id="left">
  135.  
  136.  
  137. </div>
  138.  
  139. <!--This is right division in our html file-->
  140. <div id="right">
  141.  
  142. <!--This is the html code that creates the list in the right division of the webpage-->
  143.  
  144.  
  145. </div>
  146.  
  147.  
  148. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement