Demo 1 : Tampilan Gambar Grid Masonry Responsive
Demo 2 : Tampilan Gambar Grid Masonry Responsive
Kode CSS Membuat Tampilan Gambar Grid Masonry Responsive
<div class="duipee-img">
<img alt="#" src="url gambar 1" title="#" />
<img alt="#" src="url gambar 2" title="#" />
<img alt="#" src="url gambar 3" title="#" />
<img alt="#" src="url gambar 4" title="#" />
<img alt="#" src="url gambar 5" title="#" />
<img alt="#" src="url gambar 6" title="#" />
<img alt="#" src="url gambar 7" title="#" />
</div>
<style type="text/css">
.duipee-img { -webkit-column-width:200px; -moz-column-width:200px;column-width:200px;
-webkit-column-gap:5px; -moz-column-gap:5px;column-gap:5px;}
.img {display:block;width:100%;height:auto;background-color:silver;margin:0 0 5px 0;}
</style>
- Copy kode CSS tersebut diatas di postingan pakai mode HTML ( cara copy kode diatas : blok kode CSS kemudian tekan Ctrl+C )
- Ganti alt="#"dan title="#" dengan alt tag dan title tag gambar Anda agar SEO Friendly.
- Ganti url gambar 1 dan seterusnya dengan dengan alamat url gambar postingan Anda.
- Bila ingin menambahkan gambar atau mengurangi gambar tinggal ditambah atau dihapus pada kode <img alt="#" src="url gambar" title="#" />
Selamat mecoba dan berkreasi.