CSS Stacked Photo Profile

Membuat stacked photo profile seperti di facebook. Bagaimana caranya supaya foto profile bertumpuk atau menumpuk foto profile sebelah kirinya.

Intinya adalah mengatur pada margin kiri foto agar bergeser lebih banyak ke sebelah kiri.

Dan yang terpenting, yang bergeser hanya foto nomer dua dan seterusnya, tidak termasuk foto pertama.  Hal ini bisa dicapai menggunakan CSS seperti berikut:

.stackpic:not(:first-child){}

Hasil akhirnya akan tampak seperti dibawah ini:

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.