Click here to get back home

Positioning issue with min-width divs

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Positioning issue with min-width divs paul.gibson 01-30-2008
Posted by paul.gibson on January 30, 2008, 2:53 pm
Please log in for more thread options
Hi -

For IE, I'm using some nested <div>s to create a layout that has a
fixed width area on the left of the display and a minimum width area
to its right. Stripped down, it looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test Page</title>
<!--[if IE]><style>
.PrefsPageOuter, .PrefsPageInner, .PrefTabOuter, .PrefTabInner {
height: 0;
he\ight: auto;
zoom: 1;
}
</style><![endif]-->
</head>
<body>
<form id="form1">
<div class="PrefsPageOuter" style="border-left: 594px solid
#f5f5f5"><div class="PrefsPageInner" style="margin-left:
-594px;position: relative">
Some content in this fixed width column/div
<div class="PrefTabOuter" style="border-left: 400px solid #f5f5f5"
><div class="PrefTabInner" style="margin-left: -400px;position:
relative"
Some content in this min-width column/div
</div></div>
</div></div>
</form>
</body>
</html>

I've been getting everything in the min-width column to flow nicely so
the side-by-side display of the fixed width content and the min-width
content are retained. However, when the min-width column contains a
table that is wider than the minimum width (400px), the content moves
below the fixed width content. I would like it to remain displayed
side-by-side. Besides the obvious (and for me undesirable) solution of
increasing the min width, can anyone offer a suggestion?

TIA

Similar ThreadsPosted
Why can't I embed divs in a

?

November 10, 2006, 9:40 am
Problems with divs in IE and Firefox January 26, 2005, 6:49 am
CSS Problem with Nested DIVs October 14, 2005, 4:19 pm
DIVs don't appear in FireFox - any ideas? August 26, 2005, 3:02 pm
margin under floated divs February 14, 2008, 1:06 pm
DIVs inside table cells? April 13, 2008, 9:46 am
anchor id problem with fixed and scrolling divs February 21, 2006, 10:49 am
Inline scrollable divs and mouse wheels December 14, 2006, 9:47 am
free HTML editor/divs and not tables for layout? January 13, 2008, 10:00 am
Two divs on the same line, but no horizontal scrollbar in IE, just pushes content down September 8, 2008, 12:17 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap