Skip to main content Jump to list of all articles Jump to all topics

Author Chris Coyier

10 articles

Chris is a web designer and developer. He writes about all things web at CSS-Tricks, talks about all things web at conferences around the world and on his podcast ShopTalk, and co-founded CodePen, a social development environment.

Building A Static Site With Components Using Nunjucks

Ask SM: CSS Quick-Question Edition

[Ask SM] Transparent Background, Positioning Problem

[Ask SM: CSS] Equal Spacing, CSS Font Replacement

This is our fourth installment of Ask SM, featuring reader questions about Web design, focusing on HTML, CSS and JavaScript. In this post we’ll cover how you can distribute the horizontal space between elements evenly, how you can achieve maximum sides on images; you’ll also learn best practices for CSS font replacement and answers to a couple of quickfire questions.

Two rows of boxes with equal spacing between them.

Antoine Nicolas writes: *Do you know how to perfectly and dynamically distribute objects horizontally in a container using CSS?* This is a classic example of something that is fairly difficult to do in CSS but probably shouldn’t be. I have approached this problem in a number of different ways in the past. I have revisited it a little now, and I’ll present what I believe is the best solution here.

Read more…

12 Principles For Clean HTML Code