Advertisement
luistavares

CSS - Como criar uma galaria de fotos com HTML e CSS

Jan 24th, 2023
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.75 KB | Source Code | 0 0
  1. <html>
  2. <head>
  3.     <title>Galeria</title>
  4.     <style>
  5.         img {
  6.             width: 100px;
  7.             height: 100px;
  8.             transition: scale 2s;
  9.         }
  10.  
  11.         img:hover {
  12.             scale: 4.0;
  13.         }
  14.  
  15.         div {
  16.             width: 516px;
  17.             margin-left: auto;
  18.             margin-right: auto;
  19.             margin-top: 200px;
  20.         }
  21.     </style>
  22. </head>
  23. <body> 
  24.     <div>
  25.         <img src="fig1.jpg">
  26.         <img src="fig2.jpg">
  27.         <img src="fig3.jpg">
  28.         <img src="fig4.jpg">
  29.         <img src="fig5.jpg">
  30.         <br>
  31.         <img src="fig5.jpg">
  32.         <img src="fig4.jpg">
  33.         <img src="fig3.jpg">
  34.         <img src="fig2.jpg">
  35.         <img src="fig1.jpg">
  36.     </div>
  37. </body>
  38. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement