O'Reilly logo

Responsive Web Design with HTML5 and CSS3 by Ben Frain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Quick and useful CSS3 tricks

In my day-to-day work, some of the new CSS3 features I use constantly and others I've never needed. Before getting into the heavier stuff, I thought it might be useful to share a couple of CSS3 goodies that make life easier, especially in responsive designs, by accomplishing simple tasks that used to be minor headaches.

CSS3 multiple columns for responsive designs

Ever needed to make a single piece of text appear in multiple columns? Until CSS3, you'd need to separate the content into different markup elements and then style accordingly. Altering markup for stylistic purposes is never a good practice. CSS3 allows us to span one or more pieces of content across multiple columns. Consider the following markup:

<div id="main" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required