Jordimario

Untitled

May 8th, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>ggggg</title>
  6. <style>
  7. * {
  8. box-sizing: border-box;
  9. }
  10.  
  11. body {
  12. font-family: Arial;
  13. padding: 10px;
  14. background: #404040;
  15. }
  16.  
  17. /* Header/Blog Title */
  18. .header {
  19. min-width: 200px;
  20. padding: 30px;
  21. width: 100%;
  22. text-align: center;
  23. background: white;
  24. }
  25.  
  26. .header h1 {
  27. font-size: 50px;
  28. }
  29.  
  30. /* Style the top navigation bar */
  31. .topnav {
  32. background-color: #0000ff;
  33. }
  34.  
  35. /* Style the topnav links */
  36. .topnav a,.topnav .dropdown {
  37. float: left;
  38. display: block;
  39. color: #f2f2f2;
  40. text-align: center;
  41. padding: 15px 16px;
  42. text-decoration: none;
  43. }
  44.  
  45. /* Change color on hover */
  46. .topnav a:hover {
  47. background-color: #ddd;
  48. color: black;
  49. }
  50.  
  51. /* Create two unequal columns that floats next to each other */
  52. /* Left column */
  53. .leftcolumn {
  54. float: left;
  55. width: 75%;
  56. }
  57.  
  58. /* Right column */
  59. .rightcolumn {
  60. float: left;
  61. width: 25%;
  62. background-color: #f1f1f1;
  63. padding-left: 20px;
  64. }
  65.  
  66. /* Fake image */
  67. .fakeimg {
  68. background-color: #aaa;
  69. width: 100%;
  70. padding: 20px;
  71. }
  72.  
  73. /* Add a card effect for articles */
  74. .card {
  75. background-color: white;
  76. padding: 20px;
  77. margin-top: 20px;
  78. }
  79.  
  80. /* Clear floats after the columns */
  81. .row:after {
  82. content: "";
  83. display: table;
  84. clear: both;
  85. }
  86.  
  87. /* Footer */
  88. .footer {
  89. padding: 20px;
  90. text-align: center;
  91. background: #ddd;
  92. margin-top: 20px;
  93. }
  94.  
  95. img{
  96. height:100%;
  97. width:100%;
  98. }
  99. /* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
  100. @media screen and (max-width: 800px) {
  101. .leftcolumn, .rightcolumn {
  102. width: 100%;
  103. padding: 0;
  104. }
  105. }
  106.  
  107. /* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
  108. @media screen and (max-width: 400px) {
  109. .topnav a, .topnav .dropdown{
  110. float: none;
  111. width: 100%;
  112. }
  113. }
  114. #example1 {
  115. background: right bottom no-repeat, url(paper.gif) left top repeat;
  116. padding: 15px;
  117.  
  118. }
  119. .dropbtn {
  120. background-color: #04AA6D;
  121. color: white;
  122. padding: 16px;
  123. font-size: 16px;
  124. border: none;
  125. }
  126.  
  127. .dropdown {
  128. position: relative;
  129. display: inline-block;
  130. }
  131.  
  132. .dropdown-content {
  133. display: none;
  134. position: absolute;
  135. background-color: #f1f1f1;
  136. min-width: 160px;
  137. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  138. z-index: 1;
  139. }
  140.  
  141. .dropdown-content a {
  142. color: black;
  143. padding: 12px 16px;
  144. text-decoration: none;
  145. display: block;
  146. }
  147.  
  148. .dropdown-content a:hover {background-color: #ddd;}
  149.  
  150. .dropdown:hover .dropdown-content {display: block;}
  151.  
  152. .dropdown:hover .dropbtn {background-color: #3e8e41;}
  153.  
  154.  
  155. </style>
  156. </head>
  157. <body>
  158. <div class="header">
  159. <img src="logo_small.png" width="500" height="119" alt="logo"/>
  160.  
  161. </div>
  162.  
  163. <div class="topnav">
  164. <a href="#">HOME</a>
  165. <a href="#">INFORMAZIONI</a>
  166.  
  167.  
  168. <div class="dropdown">
  169. <button class="dropbtn">PS4</button>
  170. <div class="dropdown-content">
  171. <a href="#">Giochi</a>
  172. <a href="#">Console</a>
  173. </div>
  174. </div>
  175. <div class="dropdown">
  176. <button class="dropbtn">PS5</button>
  177. <div class="dropdown-content">
  178. <a href="#">Giochi</a>
  179. <a href="#">Console</a>
  180. </div>
  181. </div>
  182. <div class="dropdown">
  183. <button class="dropbtn">XBOX</button>
  184. <div class="dropdown-content">
  185. <a href="#">Giochi</a>
  186. <a href="#">Console</a>
  187. </div>
  188. </div>
  189. <div class="dropdown">
  190. <button class="dropbtn">XBOX</button>
  191. <div class="dropdown-content">
  192. <a href="#">Giochi</a>
  193. <a href="#">Console</a>
  194. </div>
  195. </div>
  196. <a href="#" style="float:right">SINGIN</a>
  197. <a href="#" style="float:right">LOGIN</a>
  198. </div>
  199.  
  200. <div class="row">
  201. <div class="leftcolumn">
  202. <div class="card">
  203. <h1>Console NextGeneration</h1>
  204. <h5>Ordina subito la tua nuova PlayStation 5</h5>
  205. <img src="https://www.cyberludus.com/content/uploads/2020/09/playstation-5-showcase-presentazione-ps5.jpg" width="460" height="280" alt="ps5" border="2" vspace="3" hspace="3">
  206. <img src="https://www.cyberludus.com/content/uploads/2020/09/playstation-5-showcase-presentazione-ps5.jpg" width="460" height="280" alt="ps5" border="2" vspace="3" hspace="3">
  207. <div class="img" style="height:50px;">
  208. <p>...................</p>
  209. </div>
  210.  
  211.  
  212. </div>
  213. <div class="card">
  214. <h2>Console</h2>
  215. <h5></h5>
  216. <div class="fakeimg" style="height:200px;">console</div>
  217. <p>Some text..</p>
  218. <p>......</p>
  219. </div>
  220. </div>
  221. <div class="rightcolumn">
  222. <div class="card">
  223. <h2>About us</h2>
  224. <div class="fakeimg" style="height:100px;">foto social</div>
  225. <p>.........</p>
  226. </div>
  227. <div class="card">
  228. <h3>Popular game</h3>
  229. <div class="fakeimg"><p>image</p></div>
  230. <div class="fakeimg"><p>Image</p></div>
  231. <div class="fakeimg"><p>Image</p></div>
  232. </div>
  233.  
  234. </div>
  235. </div>
  236.  
  237. <div class="footer">
  238. <h2>Footer</h2>
  239. </div>
  240.  
  241. </body>
  242. </html>
  243.  
Add Comment
Please, Sign In to add comment