On 9/10/12 2:50 PM, Chris Kavinsky wrote:

The right column has a 3rd-party plugin that uses a set width. I want
the main column (left side) to fill the screen as the screen resizes
until it hits about 600px wide. At that point the right side column
should drop below the left main content. Normally, to solve the first
situation (flex main column next to set width column), I would float
the right column that has a fixed width. The problem with that is in
the HTML, the side column would need to come first. But that then
would place the side column above the main column when the screen
size is below 600px.

The challenge you face is that in order to make the tops of the two bounding boxes flush, the first column needs to have float: left set, which means that it needs a discrete width of some kind.

Assuming that #main-col is first/left, #supporting-col is second/right, and media queries are out of the question:

#main-col {
  float: left;
  width: 75%;
  min-width: 600px;
}

#supporting-col {
  float: right;
  max-width: 24%;
}

Unpleasant though the notion might be, you might find that the desired results are best accomplished by setting an overflow value on #supporting-col and placing your 3d-party stuff inside of yet another container within it.

Enclosing all of these in a container with at least { overflow: auto; height: 1%; } should give you still more layout flexibility.


--
Ben Henick              [email protected]
Sitebuilder At-Large    t:@bhenick
+1 785 856 1863
______________________________________________________________________
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/

Reply via email to