CSS-Tricks*

A Web Design Community curated by Chris Coyier

Latest Articles

How Should We Calibrate Monitors for the Web?

2/15/2011
9 Comments

When designing for print, having a properly calibrated monitor makes all the sense in the world. If done perfectly, what you see on the monitor should look like what you get on paper from a printer. No surprises.
When designing for the web, there is no physical byproduct in which to match color. We designed it on a screen, for a screen. So what does calibration matter?

Read on! →

Fade Image Into Another (within a Sprite)

2/14/2011
26 Comments

Creating an image rollover is pretty easy with CSS. Give the element a background-image, then on it’s :hover, change the background-image. It’s best practice to combine both images into one and shift the background-position rather than use two separate images, that’s the idea of CSS sprites. But what if you want to fade one image into another, not just have an abrupt shift?

Read on! →

The Shapes of CSS

2/8/2011
53 Comments

I made a page with the shapes you can make with a single HTML element and CSS. Here is an example:

The CSS you see on the page is the real CSS rendering that shape, and it also editable, so feel free to tweak it right there. I’d love to expand it if anyone has more ideas!

Read on! →

Latest Screencast

#94: Intro to Pseudo Elements

Pseudo elements are visible elements on a web page that aren't "in the DOM" or created from HTML, but are instead inserted directly from CSS. This allows you to do lots of neat design-y things without cluttering the markup. Pseudo elements are CSS 2, so browser support for them is pretty good!

Links from Video:

Latest Snippets