Advertisement
matrixplace

Untitled

May 26th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.22 KB | None | 0 0
  1. html body {
  2.     font-family: Constantina, Georgia, 'Nimbus Roman No9 L', serif;;
  3.     font-size: 16px;
  4. }
  5.  
  6. * {
  7.     margin: 0;
  8.     padding: 0;
  9. }
  10.  
  11.  
  12.  
  13. #wrapper {
  14.     width: 960px;
  15. }
  16.  
  17. ul {
  18.     list-style-type: none;
  19. }
  20. a {
  21.     text-decoration: none;
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
  28. .menu li {
  29.     margin-top: 10px;
  30.     margin-left: 10px;
  31.     padding-top: 12px;
  32.     height: 38px;
  33.     width: 170px;
  34.     background-color: #B6FF00;
  35.     text-align: center;
  36.     border-radius: 20px;
  37.     position: relative;
  38. }
  39.  
  40. .content {
  41.     display: none;
  42. }
  43.  
  44. .content {
  45.     position: absolute;
  46.     left: 160px;
  47.     top: -11px;
  48. }
  49.  
  50. .sub-menu li {
  51.     width: 540px;
  52.     height: 100%;
  53.     margin-bottom: 10px;
  54.     padding-top: 23px;
  55.     padding-bottom: 20px;
  56.     padding-left: 20px;
  57.     text-align: left;
  58.     border-radius: 10px;
  59.     background-color: #008000;
  60. }
  61.  
  62. .sub-menu li a {
  63.     color: white;
  64. }
  65.  
  66. .sub-menu li img {
  67.     display: none;
  68.     width: 500px;
  69.     padding-top: 10px;
  70.     border-top-left-radius: 10px;
  71.     border-radius: 10px;
  72.    
  73.    
  74. }
  75.  
  76. .menu li:hover {
  77.     text-decoration: underline;
  78. }
  79.  
  80. .menu li:hover .content {
  81.     display: block;
  82.     position: absolute;
  83. }
  84.  
  85. .sub-menu li:hover img {
  86.     display: block;
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement