Advertisement
FlugzeugAUT

HTML/CSS file

Jul 9th, 2016
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. <!Doctype html>
  2.  
  3. <head>
  4.  
  5. <style type="text/css">
  6. body{
  7. margin:0;
  8. background-color: red;
  9. }
  10.  
  11. #submenu{
  12. height: 45px;
  13. width: 100%;
  14. background-color:green;
  15. }
  16.  
  17. #navigation.fixed{
  18. position:fixed;
  19. background-color: blue;
  20. width:100%;
  21. top:0;
  22. height:45px;
  23. color:white;
  24. }
  25.  
  26.  
  27. #navigation{
  28. position:absolute;
  29. background-color:blue;
  30. width: 100%;
  31. height: 45px;
  32. color:white;
  33. }
  34.  
  35. #nav-wrapper{
  36. width: 1600px;
  37. margin-left: 65px;
  38. text-align: left;
  39. }
  40.  
  41. #navigation ul{
  42. list-style-type: none;
  43. padding: 0;
  44. margin: 0;
  45. }
  46.  
  47. #navigation ul li{
  48. display: inline-block;
  49. color: green;
  50.  
  51. }
  52.  
  53. #navigation ul li:hover{
  54. background-color: blue;
  55. }
  56.  
  57. #navigation ul li a, visited{
  58. display: block;
  59. text-decoration: none;
  60. }
  61.  
  62. #navigation ul li:activated{
  63. border-top: 2px solid black;
  64. }
  65.  
  66. #navigation li{
  67. width: 180px;
  68. text-align:center;
  69. font-size: 20px;
  70. height: 45px;
  71. background-color:white;
  72. }
  73.  
  74. li{
  75. text-align:center;
  76. }
  77.  
  78. /*#navigation a{
  79. top: 10px;
  80. color: green;
  81. vertical-align: middle;
  82. }*/
  83.  
  84. #navigation a{
  85. color: green;
  86. line-height: 45px;
  87. }
  88.  
  89. header{
  90. background-color:orange;
  91. height: 80px;
  92.  
  93. }
  94. </style>
  95.  
  96. </head>
  97.  
  98.  
  99.  
  100. <body>
  101. <nav id="navigation">
  102. <div id="nav-wrapper">
  103.  
  104. <ul>
  105. <li>
  106. <a id="link1" href="">Startseite</a>
  107. </li>
  108.  
  109.  
  110. <li>
  111. <a id="link2" href="">laksdfjlas</a>
  112. </li>
  113.  
  114.  
  115. <li>
  116. <a id="link3" href="">lsadkfjask</a>
  117. </li>
  118.  
  119.  
  120. <li>
  121. <a id="link4" href="">askldfjasd</a>
  122. </li>
  123.  
  124.  
  125. <li>
  126. <a id="link5" href="">askldfjasd</a>
  127. </li>
  128.  
  129.  
  130. </ul>
  131. </div>
  132. </nav>
  133. <div id="dropdown1">erste dropdown!</div>
  134. <div id="dropdown2">zweites dropdown!</div>
  135. <div id="dropdown3">drittes dropdown!</div>
  136. <div id="dropdown4">viertes dropdown!</div>
  137. <div id="dropdown5">fünftes dropdown!</div>
  138. </body>
  139.  
  140. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement