Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.22 KB | None | 0 0
  1. body
  2. {
  3.     background-color: #303030;
  4.     color: white;
  5.     margin: 0;
  6. }
  7. p
  8. {
  9.     font: 18px/20px sans-serif;
  10.     text-indent: 50px;
  11. }
  12. p:first-letter{
  13.     font-size: 4ex;
  14.     color: red;
  15. }
  16. h1
  17. {
  18.     color: red;
  19.     letter-spacing: 10px;
  20.     text-align: center;
  21. }
  22. h2
  23. {
  24.     color: chartreuse;
  25. }
  26. h3
  27. {
  28.     color: cornflowerblue;
  29. }
  30. table
  31. {
  32.     border-color: antiquewhite;
  33.     border-width: medium;
  34.     background-color: black;
  35. }
  36. #heading{
  37.     background-color: cornflowerblue;
  38.     text-transform: uppercase;
  39. }
  40. #footer{
  41.     background-color: blueviolet;
  42. }
  43.  
  44. #container{
  45.     background-color: #767f8d;
  46.     margin-left: auto;
  47.     margin-right: auto ;
  48.     width: 960px;
  49.  
  50. }
  51. #divL{
  52.     float: none;
  53.     padding: 10px;
  54.     width: 920px;
  55.     background-color: darkgreen;
  56.     min-height: fit-content;
  57.     height: fit-content;
  58.     margin-top: 10px;
  59.     margin-left: 10px;
  60.  
  61. }
  62. #menu{
  63.  
  64. }
  65. #content{
  66.     float: left;
  67.     padding: 10px;
  68.     margin: 10px;
  69.     background-color: #303030;
  70.     width: 680px;
  71. }
  72. #title{
  73.     background-color: darkgreen;
  74.     width: inherit;
  75.     text-align: center;
  76.     padding-bottom: 10px;
  77.     padding-top: 10px;
  78.  
  79. }
  80. ul{
  81.     list-style-type: none;
  82.     padding: 0px;
  83. }
  84.  
  85. ul > li > a{
  86.     color: black;
  87.     display: block;
  88.     height: 40px;
  89.     margin: 10px;
  90.     text-align: center;
  91.     background-color: #fffac7;
  92.     border: 2px dashed black;
  93.     text-decoration: none;
  94. }
  95. ul > li > a:hover{
  96.  
  97.     cursor: default;
  98.     background-color: red;
  99. }
  100. #menu h1{
  101.     color: black;
  102.     display: block;
  103.     height: 40px;
  104.     margin: 10px;
  105.     text-align: center;
  106.     background-color: #fffac7;;
  107.     border: 2px dashed black;
  108. }
  109. ul > li > ul >li{
  110.     display: none;
  111. }
  112. ul > li:hover >ul> li{
  113.     display: block;
  114. }
  115.  
  116.  
  117. ol
  118. {
  119.     color: chartreuse;
  120.     list-style: upper-roman;
  121. }
  122. ol > li > ol > li > ol
  123. {
  124.     color: red;
  125.     list-style: lower-greek;
  126. }
  127. ol > li > ol
  128. {
  129.     color: antiquewhite;
  130.     list-style: lower-roman;
  131.  
  132. }
  133. #imgL{
  134.     float: left;
  135. }
  136. #imgR{
  137.     float: right;
  138. }
  139.  
  140.  
  141. @media print{
  142.     #divL ,img{
  143.         display: none; 
  144.     }  
  145.     #foot{
  146.         display: none;
  147.     }
  148.     h1, h2, p:first-letter, ul, ol, li{
  149.         color: black;
  150.     }
  151.    
  152. }  
  153. #menu ul li {
  154.     display: inline;
  155.     float: left;
  156.     width: fit-content;
  157. }
  158. #menu ul li ul li{
  159.     float: none;
  160. }
  161. #menu ul > li > ul >li{
  162.     display: none;
  163. }
  164. #menu ul > li:hover >ul> li{
  165.     display: block;
  166. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement