|
Starhugger -> Elastic layout with minimum/maximum width (7/12/2008 22:17:02)
|
Hi everyone, Is there such a thing as creating a CSS layout with a centered 3-column structure, where the outer columns are a fixed width and the middle column is elastic according to the user's browser window, but there is a maximum width to which it will expand and a minimum width to which it will contract? In other words, if someone has one of those panoramic wide screens or a super high resolution, it would only expand to a maximum of, say, 900px (for the sake of argument). And if the user has a very low resolution screen setting, it would not shrink to less than, say, 400px (again, for the sake of argument). In between, the middle column would resize proportionately according to the screen size. I would like to design a layout that is flexible, but I don't want to wind up with long one-line paragraphs in someone's cinemascope screen, nor with overlapping boxes and images in tiny screen sizes. I guess the minimum size could be accomplished with an empty gif or something, although it would be nice to be able to do it with CSS instead. The closest I've seen is something that uses left and right side margins that are a percentage of the screen size, but I still wouldn't be able to know how wide the center column might go when I design the inside layout for all the bits. I'd rather know that there's a minimum and a maximum so that I have some idea of what it's going to look like and I can work around those parameters. I haven't seen anything like this in my search travels, but I might have missed it. Thanks! Starhugger
|
|
|
|