Previous Message
Next Message

Re: [css-d] left-floating side by side elements etc

Sent by Xian on 17 July 2002 18:06


On 7/17/02 5:31 PM, "Tom Dell'Aringa" [EMAIL-REMOVED]> wrote:
> I've been trying to come up with a CSS design that has 2 div's side
> by side, by left floating them and setting width percentages

> I'm also using XHTML Strict. It works in IE5.5, breaks in Mozilla 1
> (they are stacked.) I'm thinking that I'm actually not doing it right
> and stacked is correct.

IIRC this has to do with a rounding error in moz. As percents do not
translate into pixels with perfect precision.

Try adding this to your styles:

#content {
Margin-right:-1px;
    }

This should keep moz from thinking the two elements are actually wider than
the browser window.

Xian :: www.mintchaos.com
Previous Message
Next Message

Message thread: