Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  8. <title>Kuchnia polska</title>
  9.  
  10. <!-- Bootstrap -->
  11. <!-- Latest compiled and minified CSS -->
  12. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  13. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  14.  
  15.  
  16. <!-- muj css -->
  17. <link href="css/style.css" rel=stylesheet>
  18.  
  19. </head>
  20.  
  21.  
  22.  
  23. <body>
  24. <div class="navbar-margin">
  25. <div class="container">
  26. <nav class="navbar navbar-inverse navbar-static-top radius">
  27. <div class="container-fluid">
  28. <div class="navbar-header">
  29. <div class="navbar-brand"><p>Kuchnia polska</p></div>
  30. </div>
  31. <div class="navbar-collapse collapse">
  32. <ul class="nav navbar-nav navbar-right">
  33. <li class="active"><a href="#">Strona główna</a></li>
  34. <li class="hoverbutton">
  35. <a class="hoverbutton" href="#">Przepisy <i class="fa fa-arrow-down"></i></a>
  36. <ul class="hovermenu navbar-nav">
  37. <li><a href="#">Raz</a></li>
  38. <li><a href="#">dwa</a></li>
  39. <li><a href="#">trzy</a></li>
  40. </ul>
  41. </li>
  42. <li><a href="#">O mnie</a></li>
  43. <li><a href="#">Kontakt</a></li>
  44. </ul>
  45.  
  46.  
  47.  
  48. </div>
  49. </div>
  50. </nav>
  51. </div> <!-- container -->
  52. </div>
  53. <div class="header">
  54. <div class="header-image">
  55. </div>
  56. <div class="container">
  57. <div class="header-text">
  58. <h1>Hello world!</h1>
  59. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  60. </p>
  61. </div>
  62. </div>
  63. </div>
  64.  
  65.  
  66. </body>
  67.  
  68.  
  69.  
  70.  
  71.  
  72. </html>
  73.  
  74.  
  75. body{
  76. max-width: 100%;
  77. overflow-x: hidden;
  78. }
  79. .navbar-margin{
  80. margin-top:20px;
  81. position:absolute;
  82. top: 0;
  83. right: 0;
  84. left: 0;
  85. }
  86. .radius{
  87. border-radius: 4px;
  88. }
  89. .hovermenu{
  90. display: none;
  91. position: absolute;
  92. min-width: 120px;
  93. border-radius: 4px;
  94. }
  95. .hoverbutton:hover .hovermenu{
  96. display:block;
  97. background-color: #222222;
  98. }
  99. .hovermenu li {
  100. list-style-type:none;
  101. color: black;
  102. padding: 12px;
  103. display: block;
  104. }
  105. .hovermenu a {
  106. text-decoration: none;
  107. }
  108. .header{
  109. position: relative;
  110. height:500px;
  111. overflow: hidden;
  112. }
  113. .header-image{
  114. background-position: center;
  115. height:500px;
  116. background-image: url(http://i.huffpost.com/gen/3354302/images/o-KNIFE-TRICKS-facebook.jpg);
  117. }
  118. .header-text{
  119. position: absolute;
  120. right: 15%;
  121. bottom: 20px;
  122. left: 15%;
  123. z-index: 10;
  124. padding-top: 20px;
  125. padding-bottom: 20px;
  126. color: #fff;
  127. text-align: center;
  128. text-shadow: 0 1px 2px rgba(0,0,0,.4);
  129. }
  130. .header-text p{
  131. font-size: 21px;
  132. margin-left:50px;
  133. margin-right:50px;
  134. word-wrap:break-word;
  135. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement