Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1.  
  2. *{
  3. margin: 0;
  4. padding: 0;
  5. }
  6. .clearfix afer{
  7. content: "";
  8. display: block;
  9. clear: both;
  10. }
  11. nav{
  12. width: 100%;
  13. height: 50px;
  14. background-color: red;
  15. position: fixed;
  16. top:0;
  17. left:0;
  18. z-index:1;
  19.  
  20. }
  21. nav ul{
  22. line-height: 50px;
  23. width: 100%;
  24. }
  25. nav ul li{
  26. float: left;
  27. list-style: none;
  28. width: 25%;
  29. text-align: center;
  30. }
  31. nav ul li a{
  32. text-decoration: none;
  33. color: white;
  34. font-size: 20px;
  35. text-transform: uppercase;
  36. display: block;
  37. font-family: arial;
  38. }
  39. nav ul li a:hover{
  40. color: blue;
  41. background-color: white;
  42. }
  43. aside{
  44. background-image: url(https://static4.redcart.pl/templates/images/thumb/9595/800/800/pl/0/templates/images/products/9595/124-9093_0.jpg);
  45. background-attachment: fixed;
  46. background-size: cover;
  47. height: calc(100vh - 40px);
  48. }
  49. aside h1{
  50. line-height: 40px;
  51. font-family: tahoma;
  52.  
  53. }
  54. header{
  55. height: 100vh;
  56. }
  57. .jeden{
  58. background-color: pink;
  59. width: 25%;
  60. float: left;
  61. height: 100%;
  62. position: relative;
  63. }
  64. .dwa{
  65. background-color:chartreuse;
  66. width: 25%;
  67. float: left;
  68. height: 100%;
  69. position: relative;
  70. }
  71. div.dwa img{
  72. width: 100%;
  73. height: 34%;
  74. position: absolute;
  75. top: 66%;
  76. left: 50%;
  77. transform: translate(-50%, 0%)
  78. }
  79. .trzy{
  80. background-color:darkgreen;
  81. width: 25%;
  82. float: left;
  83. height: 100%;
  84. position: relative;
  85. }
  86. .piec{
  87. background-color:aqua;
  88. float: left;
  89. width: 25%;
  90. height: 100%;
  91. position: relative;
  92. }
  93. div.piec h1{
  94. position: absolute;
  95. top: 50%;
  96. right:0;
  97. transform: translate(-50%, -50%)
  98. }
  99. footer{
  100. height: 50px;
  101. text-align: center;
  102. background-color:fuchsia;
  103. }
  104. footer p{
  105. color: white;
  106. line-height: 50px;
  107. font-size: 20px;
  108. font-family: arial;
  109. background-color:chocolate;
  110. position:absolute;
  111. top: calc(100vh-50px);
  112. left: 50%;
  113. transform: translate(-50%);
  114. padding: 0 100px;
  115.  
  116. }
  117. table{
  118. position: absolute;
  119. top: 120px;
  120. left: 50%;
  121. border-style: dotted;
  122. transform: translate(-50%, -50%)
  123. }
  124. ol{
  125. position: absolute;
  126. top: 50%;
  127. left: 50%;
  128. transform: translate(-50%, -50%)
  129. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement