Previous Message
Next Message

controling float:right width

Sent by Brian Cummiskey on 28 November 2003 12:12


hey folks...

First, let me say Happy Holidays to you all.

Now, for CSS:

I am working on re-doing one of my sites in CSS/table-less design, and right now im
stupmed.

the basic code is this:
<div content>
    <div left side></div>
    <div right side></div>
</div>

the problem i'm having is on both small brower windows (not maximized) and the right
float won't maintain a %width without distorting everything.

due the the width of the banner ad space, the left side i set to have a 475px width
and allow the right side to take over the rest from there...  but it doesn't.  it only
inherits the width of the longest content in that div's box.

css:

#content {
 padding: 0;
 margin: 0;
}

..left {
 width: 475px;
 float:left;
}
..right {
 float:right;
}


Basically want I want to do is to specify it in percent, but when i do that, it throws
it out of the div (makes it act absolutly so to speak, over-writing the left div if it
gets too wide)

relevent links:

xhtml: http://hondaswap.com/index6.php
css:    http://hondaswap.com/includes/css/layout.css
        http://hondaswap.com/includes/css/style.css (not too important... mostly font
stuff)

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: