BlueBelleGotSpanked
New Member
I am trying to layout a page in three columns, I want the middle column to resize with the page but the problem is that if the page is made very narrow, the left column either slides below the middle one (if I use float to position the columns) or it overlaps it (if I use absolute positioning). I want the right column to "bump" into the middle one once that one's min width is reached and stop moving, at this point the page should start showing a horizontal scroll bar. Following is my attempt with absolute positioning:\[code\]<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head> <title>Test</title> <style type="text/css" media="all"> h2 {margin-top: 0;} #leftside { position: absolute; left: 0; width: 200px; } #rightside{ position: absolute; right: 0; width: 150px; } #content { min-width:200px; margin: 0 150px 0 200px; } </style></head><body><div id="leftside"><ul><li><a href="">Left Menu 1</a></li><li><a href="">Left Menu 2</a></li></ul></div><div id="rightside"><ul><li><a href="">Right Item 1</a></li><li><a href="">Right Item 2</a></li></ul></div><div id="content"><h2>Content Title</h2><p>Some paragraph.</p><h2>Another title</h2><p>Some other paragraph with total nonsense. Just plain old text stuffer that serves no purpose other than occupying some browser real-estate</p></div></body></html>\[/code\]