[thelist] CSS problem is driving me mad

misterhaan misterhaan at track7.org
Sun Dec 4 20:20:44 CST 2005

Aron Lurie wrote:

>I've been working on a project recently where i want to have a full page header, with one uniform height and background color, but with some of the text floated right, and some of the text floated left. 
I've always done it like this:

<div style="background-color: yellow; height: 2em;">
  <div style="float: left;">
    Text Floated Left
  <div style="float: right; text-align: right;">
    Text Floated Right
  <br style="clear: both; display: block; height: 0;" />

More information about the thelist mailing list