Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jas123

macrumors member
Original poster
Apr 1, 2008
97
0
I'm trying to create a layout that has two columns. I want the left column to remain fixed in width and have the other one expandable. I have both columns wrapped inside a div tag. The problem I have is with the expandable column. I've tried setting the width to 100%, but when I do this it wants to take up the whole space and not the 100% less the fixed width of the other column. I've set the width 50% but this causes it to not expand in proportion with other elements on the page. How can I fix this?
 
That's a good site to know about. I had not heard of it before. The article you gave me, however, does not seem to touch upon what i'm talking about. In it, they had all three columns expandable, whereas, i would want the left most column fixed, to say 100 pixels, and the other two columns expandable to whatever. Is it possible to do with a CSS layout? I've done it with tables, and am just not sure how to do with with CSS. Thanks for the reply.
 
Take another look, there is 2 column, 3 column layouts and options to have mixed em, % and full % and full em layouts to suite.

Top tab to select amount of columns and "Measure columns in" change to Em widths. That will make 1 column fixed and the other flexible then you go to view source and copy the code to experiment with how it works.
 
Thanks again for the reply, I believe this is what I'm looking for. I did not notice the column measurements above. Thanks again, I appreciate your help.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.