[drupal-devel] css clear use

Steven Wittens steven at acko.net
Sat Oct 1 14:56:14 UTC 2005

>I'm trying to develop a theme with floating css elements and there are
>several uses of clear in misc/drupal.css that are messing up my layout.
>Is there a particular programmatic reason the use of clear is
>superordinate to themes?
>I seem to have been able to override it in the theme css file, but aside
>from it being temporarily annoying to fix, it doesn't seem like I should
>have to override Drupal built-in css.

It's much better to switch to a layout model that can actually handle 
clears at arbitrary locations:

By encasing each column in a floated div, you structurally separate 
them, and they won't interfere with eachothers clears. This also has the 
benefit of allowing source ordered columns.

Steven Wittens

More information about the drupal-devel mailing list