CSS-Tricks*

A Web Design Community curated by Chris Coyier

Latest Articles

What’s the Difference?

1/10/2011
25 Comments

Reader Paul writes in:

What’s the difference between .container div { } and div.container { }?

It’s great you are asking questions like this Paul. The answer is very important to understanding CSS, because these two selectors select very different things. This is pretty similar to this question from a while back.
Perhaps a good way to explain their difference is reason them out in “plain English”.

Read on! →

Moving Highlight

1/9/2011
36 Comments

I recently noticed a subtle and nice effect in the Google Chrome UI. As you mouse over inactive tabs, they light up a bit, but also have a gradient highlight that follows your mouse as you move around on them.

The guys from DOCTYPE told me it was their inspiration for the navigation on their website. They are doing it just like I would have, with CSS3 gradients and jQuery. So I decided to snag their code…

Read on! →

Links

1/3/2011
18 Comments

Got a couple of slightly-oldie-but-goodies for you:

  • A jQuery plugin by Manos Malihutsakis which allows you do to create custom scrollbars for content areas that do some neat things like move their position and size, style them differently, and use easing.
  • Benjamin De Cock’s CSS Playground has a number of stripped down and clever CSS ideas like a slideshow, spinner graphic without images, and some neat navigation ideas.
  • Caleb Ogden uses some CSS3 to make a submit

Read on! →

Latest Screencast

#93: CSS3 Slideup Boxes

Follow along as we use a few very simple CSS3 transitions to create a "slideup" box effect. Roll over the box with your mouse, and the title of the box slides out of the way and a more descriptive stylized box of information jockeys its way into place. This is supported in modern version of Gecko, WebKit, and Opera browsers. No Internet Explorer support yet, but no fallback is needed, the link works and the information shows as expected.

Latest Snippets