Advertisement
MrsMcLead

CSS List

Feb 11th, 2014
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.23 KB | None | 0 0
  1. <head>
  2. <title>
  3. CSS Lists
  4. </title>
  5. <style type = "text/css">
  6. body
  7. {
  8.     background-color: White;
  9.     font-size: 20px;
  10.     margin: 0pt;
  11. }
  12. h1
  13. {
  14.     halign: center;
  15. }
  16. #heading
  17. {
  18.     height: 100px;
  19.     background-color: #006600;
  20.     text-align: center;
  21.     font-size: 45pt;
  22.     font-weight: bold;
  23.     font-style:italic;
  24.     text-decoration:underline;
  25.     margin-top: 1pt;
  26.     padding: 1pt;
  27. }
  28. #left
  29. {
  30.     float: left;
  31.     width: 20%;
  32.     height: 75%;
  33.     background-color: #336600;
  34.     font-size: 15pt;
  35.     padding: 10pt;
  36.     color: white;
  37. }
  38. #right
  39. {
  40.     float: left;
  41.     width: 65%;
  42.     height: 75%;
  43.     padding: 10pt;
  44.     color: #33660;
  45. }
  46. #mymenu li
  47. {
  48.     list-style-type: none;
  49.     width: 60mm;
  50.     text-align: left;
  51.     margin-left: 10mm;
  52. }
  53. #mymenu a
  54. {
  55.     text-decoration: none;
  56.     color: white;
  57.     display: block;
  58.     border: 3px green outset;
  59.     background-color: #006633;
  60. }
  61. #mymenu a:hover
  62. {
  63.     border: 10px green inset;
  64. }
  65. </style>
  66. </head>
  67.  
  68. <body>
  69.  
  70. <p>
  71. <!--Nothing here-->
  72. </p>
  73. <p> Using Lists in CSS</p>
  74.  
  75. <h3> Stuff We Know </h3>
  76.  
  77. <ul id = "mymenu">
  78.     <li><a href = "a.html"> My First Link </a></li>
  79.     <li><a href = "b.html"> My Second Link </a></li>
  80.     <li><a href = "c.html"> My Third Link </a></li>
  81.     <li><a href = "d.html"> My Fourth Link </a></li>
  82. </ul>
  83.  
  84. </body>
  85. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement