Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
[CSS] Overlapping faces-list
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markshall" data-source="post: 371762" data-attributes="member: 1872"><p>There's a fairly popular trend going around on the web at the minute where websites will display faces of people but they will overlap each other.</p><p></p><p>I've seen this on a few designs, and saw it most recently on <a href="https://dribbble.com/shots/2638271--Little-big-detail/attachments/528478" target="_blank">this Dribbble post</a></p><p></p><p>It's a nice effect and decided to recreate it in CSS, no JavaScript required to pull the faces back.</p><p></p><p><a href="http://codepen.io/Markshall/pen/vGpWrg" target="_blank">View it on CodePen</a></p><p></p><p>And if you want the full code:</p><p>[HTML]<!DOCTYPE html></p><p><html lang="en"></p><p> <head></p><p> <meta charset="UTF-8"></p><p> <title>Faces List</title></p><p> </p><p> <style></p><p> body {</p><p> padding: 100px;</p><p> }</p><p> </p><p> ul.faces-list {</p><p> list-style: none;</p><p> }</p><p> </p><p> ul.faces-list li {</p><p> display: inline-block;</p><p> }</p><p> </p><p> ul.faces-list li:nth-child(n-1) {</p><p> margin-left: -11px;</p><p> }</p><p> </p><p> ul.faces-list li img {</p><p> width: 30px;</p><p> height: 30px;</p><p> border-radius: 50%;</p><p> border: 2px solid #ffffff;</p><p> }</p><p> </style></p><p> </head></p><p> </p><p> <body></p><p> <ul class="faces-list"></p><p> <li><img src="http://www.radfaces.com/images/avatars/little-pete-wrigley.jpg" alt=""></li></p><p> <li><img src="http://www.radfaces.com/images/avatars/chris-chambers.jpg" alt=""></li></p><p> <li><img src="http://www.radfaces.com/images/avatars/lori-beth-denberg.jpg" alt=""></li></p><p> <li><img src="http://www.radfaces.com/images/avatars/sam-emerson.jpg" alt=""></li></p><p> <li><img src="http://www.radfaces.com/images/avatars/david-bowie.jpg" alt=""></li></p><p> </ul></p><p> </body></p><p></html>[/HTML]</p></blockquote><p></p>
[QUOTE="Markshall, post: 371762, member: 1872"] There's a fairly popular trend going around on the web at the minute where websites will display faces of people but they will overlap each other. I've seen this on a few designs, and saw it most recently on [URL='https://dribbble.com/shots/2638271--Little-big-detail/attachments/528478']this Dribbble post[/URL] It's a nice effect and decided to recreate it in CSS, no JavaScript required to pull the faces back. [URL='http://codepen.io/Markshall/pen/vGpWrg']View it on CodePen[/URL] And if you want the full code: [HTML]<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Faces List</title> <style> body { padding: 100px; } ul.faces-list { list-style: none; } ul.faces-list li { display: inline-block; } ul.faces-list li:nth-child(n-1) { margin-left: -11px; } ul.faces-list li img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ffffff; } </style> </head> <body> <ul class="faces-list"> <li><img src="http://www.radfaces.com/images/avatars/little-pete-wrigley.jpg" alt=""></li> <li><img src="http://www.radfaces.com/images/avatars/chris-chambers.jpg" alt=""></li> <li><img src="http://www.radfaces.com/images/avatars/lori-beth-denberg.jpg" alt=""></li> <li><img src="http://www.radfaces.com/images/avatars/sam-emerson.jpg" alt=""></li> <li><img src="http://www.radfaces.com/images/avatars/david-bowie.jpg" alt=""></li> </ul> </body> </html>[/HTML] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
[CSS] Overlapping faces-list
Top