Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.59 KB | None | 0 0
  1. *{
  2.     margin:0;
  3.     padding:0;
  4. }
  5. .clearfix::afer{
  6.     content: "";
  7.     display: block;
  8.     clear: both;
  9. }
  10. body{
  11.     background-color:pink;
  12.     width:100vw;
  13. }
  14.  
  15. nav{
  16.     height: 15vh;
  17.     width:100%;
  18.     background-color:red;
  19.     position:fixed;
  20.    
  21.  
  22. }
  23. nav ul{
  24.     line-height: 15vh;
  25.     width: 100%;
  26. }
  27. nav ul li{
  28.     float: left;
  29.     list-style: none;
  30.     width: 25%;
  31.     text-align: center;
  32. }
  33. nav ul li a{
  34.     text-decoration: none;
  35.     color: white;
  36.     font-size: 20px;
  37.     text-transform: uppercase;
  38.     display: block;
  39.     font-family: arial;
  40. }
  41. nav ul li a:hover{
  42.     color: blue;
  43.     background-color: white;
  44. }
  45.  
  46. header{
  47.     background-image:url(tlo.jpg);
  48.     background-repeat: no-repeat;
  49.     background-size:cover;
  50.     background-attachment:fixed;
  51.     background-position:center;
  52.     text-align:center;
  53.     height:100vh;
  54.     calc:height(100vh-15vh);
  55.    
  56. }
  57. h1{
  58.     position:relative;
  59.     top:25%;
  60.    
  61. }
  62.  
  63. #contener{
  64.     width:100%;
  65.     height:65vh;
  66.    
  67. }
  68. #jeden{
  69.     position: absolute;
  70.     top: 100vh;
  71.     left: 0;
  72.     height:65vh;
  73.     width: 25vw;
  74.     background-color:yellow;
  75. }
  76. h2{
  77.     text-align:center;
  78. }
  79.  
  80. ol{
  81.     position:absolute;
  82.     left:45%;
  83.     bottom:45%;
  84.    
  85. }
  86. #dwa{
  87.     position: absolute;
  88.     top: 100vh;
  89.     left: 25vw;
  90.     height:65vh;
  91.     width: 25vw;
  92.     background-color:orange;
  93. }
  94.  
  95. h3{
  96.     text-align:center;
  97. }
  98.  
  99. img{
  100.     position:absolute;
  101.     bottom:0%;
  102.     width:100%;
  103.    
  104. }
  105.  
  106. #trzy{
  107.     position: absolute;
  108.     top: 100vh;
  109.     right: 25vw;
  110.     height:65vh;
  111.     width: 25vw;
  112.     background-color:brown;
  113. }
  114.  
  115. h4{
  116.     text-align:center;
  117.    
  118. }
  119. table{
  120.     border-collapse:collapse;
  121.     position:absolute;
  122.     left:35%;
  123.     top:120px;
  124. }
  125. td{
  126.     border:dotted 2px;
  127.    
  128. }
  129. #cztery{
  130.     position: absolute;
  131.     top: 100vh;
  132.     right: 0;
  133.     height:65vh;
  134.     width: 25vw;
  135.     background-color:aqua;
  136. }
  137.  
  138. h5{
  139.     text-align:center;
  140.    
  141. }
  142. h6{
  143.     position:absolute;
  144.     top:50%;
  145.     right:0;
  146.        
  147. }
  148. #piec{
  149.     height:30vh;
  150.     width:100vw;
  151.     background-image:url(tlo.jpg);
  152.     background-repeat: no-repeat;
  153.     background-size:cover;
  154.     background-attachment:fixed;
  155.     background-position:center;
  156.    
  157. }
  158. footer{
  159.     position:relative;
  160.     left:32.5%;
  161.     height:10vh;
  162.     width:35vw;
  163.     background-color:gray;
  164.     text-align:center;
  165. }
  166. .stopka{
  167.     position:absolute;
  168.     top:40%;
  169.     left:40%;
  170.    
  171.    
  172. }
  173.  
  174.  
  175.  
  176.  
  177.  
  178. <!DOCTYPE html>
  179.     <html lang="pl">
  180.         <head>
  181.             <meta charset="UTF-8">
  182.             <title>Praca domowa</title>
  183.             <link rel="stylesheet" href="strona.css">
  184.         </head>
  185.        
  186.         <body>
  187.             <nav class="clearfix">
  188.                 <ul>
  189.                     <li><a href="#contener">TEKST</li></a>
  190.                     <li><a href="">TEKST</a></li>
  191.                     <li><a href="">TEKST</a></li>
  192.                     <li><a href="">TEKST</a></li>
  193.                 </ul>
  194.             </nav>
  195.             <header class="clearfix">
  196.                 <h1>Nagłówek 1</h1>
  197.             </header>
  198.             <div id="contener">
  199.            
  200.                 <div id="jeden">
  201.                    
  202.                     <h2>Nagłówek 2</h2>
  203.                    
  204.                     <ol>
  205.                         <li>Jeden</li>
  206.                         <li>Dwa</li>
  207.                         <li>Trzy</li>
  208.                     </ol>
  209.                    
  210.                 </div>
  211.                
  212.                 <div id="dwa">
  213.                
  214.                     <h3>Nagłówek 3</h3>
  215.                
  216.                     <img src="png.jpg" alt="obrazek">
  217.                    
  218.                 </div>
  219.                
  220.                 <div id="trzy">
  221.                    
  222.                     <h4>Nagłówek 4</h4>
  223.                    
  224.                     <table>
  225.                    
  226.                         <tr>
  227.                             <td>Raz</td>
  228.                             <td>Dwa</td>
  229.                             <td>Trzy</td>
  230.                         </tr>
  231.                        
  232.                         <tr>
  233.                             <td>Raz</td>
  234.                             <td>Dwa</td>
  235.                             <td>Trzy</td>
  236.                         </tr>
  237.                        
  238.                         <tr>
  239.                             <td>Raz</td>
  240.                             <td>Dwa</td>
  241.                             <td>Trzy</td>
  242.                         </tr>
  243.                    
  244.                     </table>
  245.                    
  246.                 </div>
  247.                
  248.                 <div id="cztery">
  249.                     <h5>Nagłówek5</h5>
  250.                     <h6>TEKST PRZYKŁADOWY</h6>
  251.                    
  252.                 </div>
  253.            
  254.             </div>
  255.             <div id="piec"></div>  
  256.                 <footer><p class="stopka">STOPKA</p></footer>
  257.                
  258.         </body>
  259.        
  260.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement