Forum Moderators: not2easy
Any ideas?
I looked through tutorials online and they all had the same problem. Look at this page for example: [css.maxdesign.com.au...]
If you make it really small, the columns mess up. The one difference between their example is that mine has to have the minimum widths.
Thanks you!
[edited by: heini at 9:43 am (utc) on Nov. 19, 2003]
[edit reason] please don't post your urls, see Charter for explanation / thanks! [/edit]
( thanks for asking the question becuase you just solved my problem by making me think about from another perspective!)
use the
width:NUMBERpx; and
position:static;
on the encapsulating div element
Regards,
1beb
left:0; <!-- for left column -->
righ:0; <!-- for right column -->
width:auto; <!-- for middle column --> Max_Power: you can use a percentage to define an elements size...
Regards,
1beb ( I need sleep forums are addictive! )
I know that percentages can be used to specify size; in fact, that's what I've been trying to do. My layout is as follows:
Body
-----Container div
----------Header
----------Left Column, Right Column
----------Footer
As of right now, the left column is floated left, and right column is floated right. I've tried setting the width of the left column to 20% and the width of the right one to 75% (they overlap in some browsers if i set the right one to 80%), but eventually the right column moves underneath the left one as i make the window smaller.
I don't mind the idea of setting a pixel size for the left column because it's supposed to be a small part of the page. However, the right column takes up so much of the page and is mostly text; it seems odd to me that it might not be able to shrink with the window.
If my problem seems too different from the one that started this topic, I'll start a new one.
The problem/requirements that I can't seem to get are:
1) The center column must have a width of at least 400px, but should expand on larger windows.
2) The left sidebar should have a minimum width of 150px, but also expand percentage wise (about 19%)...right now the center content and this are grouped in a left floating div.
3) The right sidebar should have a minimum width of 200px, with a width about 26%.
All in all, the page should be about 800px wide.
I got all this to work in everything but IE6. On most browsers, when the window is too small, just a horizontal scrollbar shows up. But on IE6, everything gets messed up when the window gets to small (see the SS).
The one other possible solution that I want to avoid is having the sidebars being position absolute and using margins to place the content. The problem with this (although you cannot see it in the SS) is that there is a copyright bar that on small content pages would appear directly below the content, therefore interfering with the sidebars.
Any ideas? Sorry that I am making this so complicated and specific, but I think there really is a way to do this...
Thanks.
[edited by: heini at 9:44 am (utc) on Nov. 19, 2003]