Css Image Galeri Responsive |
<html> <head> <style> div.gallery { margin: 5px; border: 1px solid #ccc; float: left; width: 180px; } div.gallery:hover { border: 1px solid #777; } div.gallery img { width: 100%; height: auto; } div.desc { padding: 15px; text-align: center; } </style> </head> <body> <div class="gallery"> <a href="https://draft.blogger.com/img_fjords.jpg" target="_blank"> <img alt="Trolltunga Norway" height="200" src="img_fjords.jpg" width="300" /> </a> <div class="desc"> Add a description of the image here</div> </div> <div class="gallery"> <a href="https://draft.blogger.com/img_forest.jpg" target="_blank"> <img alt="Forest" height="400" src="img_forest.jpg" width="600" /> </a> <div class="desc"> Add a description of the image here</div> </div> <div class="gallery"> <a href="https://draft.blogger.com/img_lights.jpg" target="_blank"> <img alt="Northern Lights" height="400" src="img_lights.jpg" width="600" /> </a> <div class="desc"> Add a description of the image here</div> </div> <div class="gallery"> <a href="https://draft.blogger.com/img_mountains.jpg" target="_blank"> <img alt="Mountains" height="400" src="img_mountains.jpg" width="600" /> </a> <div class="desc"> Add a description of the image here</div> </div> </body> </html>
diatas kode lengkapnya silakan dikopas kelembar kerja anda
Posting Komentar
Posting Komentar