hey look what i can do with css

This is a proof-of-concept demo of a CSS technique I "invented" while working on the redesign of Shacknews.

This page does not contain Javascript. It's all done using CSS.

The red boxes you see to the left are spans contained inside links. The links are absolutely positioned inside an outer container (grey). The spans (red) are absolutely positioned inside the links. There is a bunch of text in the links, but you can't see it at the moment because the spans and the links are the same size.

Hover over Part 1 to read more.

Danger

This demo is totally impractical. It was created as a proof-of-concept companion for an article I wrote. Please don't take this code and try to adapt it to your needs. There are many clean and usable ways to do dynamic content. This is not one of them.

Back to the Article