Posts filed under 'CSS'

Clearing floated elements with or without structural markup: Presentation vs. Content

2nd April 2007

Recently in the office the developers having been having a debate about how best to clear the space below floated elements. It seems we fall into two camps, one using purely CSS and the other using an XHTML element with some CSS applied to it.

Before reading this post you may want to read Eric Meyer’s article Containing Floats which explains the clearing problem well.

What I really want to discuss the merits and flaws of both methods and try and decide which method is best to use. It is really a debate about whether or not to add extra markup to your XHTML document.

Read more »

PHOTOS

BITS AND PIECES

Bits of me scattered around the web.

SUBSCRIBE