Guest User

Untitled

a guest
Nov 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <title>Webbtest 2</title>
  5. <link rel="stylesheet" href="stuff.css">
  6.  
  7. </head>
  8. <body>
  9.  
  10. <div class="title">Sample Text</div>
  11. <div class="bar">
  12. <div class="home"><a href="#home">Home</a></div>
  13. <div class="news"><a href="#news">News</a></div>
  14. <div class="contacts"><a href="#contacts">Contacts</a></div>
  15. <div class="about"><a href="#about">About</a></div>
  16. </div>
  17. <div class="box">
  18. <div class="boxtext">
  19. <h1><strong>Lorem Ipsum</strong></h1>
  20. <p></p>
  21. </div>
  22. </div>
  23.  
  24. </body>
  25. </html>
  26.  
  27. body {
  28.  
  29. margin: 0;
  30. background-image:
  31. url("https://ak2.picdn.net/shutterstock/videos/4550942/thumb/1.jpg");
  32. background-position: center;
  33. background-size: cover;
  34.  
  35. }
  36.  
  37. .title {
  38.  
  39. color: black;
  40. background-color: #ad8961;
  41. width: 70%;
  42. height: calc(15vh);
  43. font-size: calc(10vh);
  44. font-family: 'Franklin Gothic Medium', 'Arial Narrow';
  45. text-align: center;
  46. margin-left: 15%;
  47. margin-right: 15%;
  48. padding-top: 0.6%;
  49.  
  50. }
  51.  
  52. .bar {
  53.  
  54. position: relative;
  55. background-color: #04406d;
  56. width: 70%;
  57. height: 60px;
  58. text-align: center;
  59. margin-top: -1%;
  60. margin-right: 15%;
  61. margin-left: 15%;
  62.  
  63. }
  64.  
  65. .home {
  66.  
  67. position: relative;
  68. color: black;
  69. font-size: 22px;
  70. margin-left: -87%;
  71. top: 25%;
  72.  
  73. }
  74.  
  75. .news {
  76.  
  77. position: relative;
  78. color: black;
  79. font-size: 22px;
  80. margin-left: -66%;
  81. top: -17%;
  82.  
  83. }
  84.  
  85. .contacts {
  86.  
  87. position: relative;
  88. color: black;
  89. font-size: 22px;
  90. margin-left: -41%;
  91. top: -60%;
  92.  
  93. }
  94.  
  95. .about {
  96.  
  97. position: relative;
  98. color: black;
  99. font-size: 22px;
  100. margin-left: 90%;
  101. top: -104%;
  102. }
  103.  
  104. .box {
  105.  
  106. background-color: #ad8961;
  107. width: 70%;
  108. height: calc(76.5vh);
  109. text-align: center;
  110. color: black;
  111. margin-top: -1.7%;
  112. margin-right: 15%;
  113. margin-left: 15%;
  114.  
  115. }
  116.  
  117. .boxtext {
  118.  
  119. background: white;
  120. margin-left: 10%;
  121. margin-right: 10%;
  122.  
  123. }
  124.  
  125. a:hover {
  126.  
  127. background-color: darkblue;
  128.  
  129. }
  130.  
  131. a:link {
  132. color: black;
  133. }
  134.  
  135. a:visited {
  136. color: black;
  137. }
Add Comment
Please, Sign In to add comment