Hello,
I have a question involving the effect of the position and overflow
properties on floats. My example is a simple two-column layout. The left
column, called "Main_Nav," is floated left and assigned a width (270px); the
right column, called "Details," not floated nor assigned a width, is given a
left-margin equivalent to the width of the navigation column. In IE7 and
various versions of Firefox on PC this works to create a liquid layout in
which the Details column expands to fill the width of the browser unoccupied
by Main_Nav. Here are the CSS rules for these columns:
#Main_Nav
{
float: left;
width: 270px;
display: inline;
overflow: hidden;
}
#Details
{
margin: 0 0 0 270px;
position: relative;
overflow: hidden;
}
Here is an example of this layout:
http://maui.pedrera.com/Clients/codebase/cpr/
Now I realize there are things on this page not exactly kosher from a
standards-compliant perspective. We are using a table to provide a big easy
control for people to toggle the visibility of the Main_Nav column. But the
thing I wanted to ask about concerns the necessity of setting the position
and overflow properties on the Details column. This column needs to contain
.NET controls which render a variety of UI widgets such as draggable list
items and collapsible panels and whatnot. I discovered that unless I
applied the position and overflow properties as above the layout would break
in IE7 and IE8 when a user interacted with these widgets.
Although satisfied that the problem appears to have been fixed, I am curious
to know why this was necessary. I realize this involves some very basic
concepts. I would appreciate it if anyone could let me know whether there
is something incorrect about this layout.
Thanks,
John
John Gribben
Pedrera, Inc.
215 348 7446
[email protected]
http://www.pedrera.com <http://www.pedrera.com/>
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/