![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
| Any suggestions? Thanks! |
#3
| |||
| |||
|
|
I am trying to create a layout that has three main columns. The primary content is the left most column. The width of this should be variable depending on the size of the browser window. The middle and right columns should have a fixed width of 200 pixels. I can get the middle and right columns working as expected. I can't figure out how to make the first column change with the browser size. If I use a width of 60% it almost works, but when the browser window is small, the third column wraps around and appears way down at the bottom. Is there some way to make the width of the first column simply "the remainder". For example: div style="float: left; width: remainder" * *main content /div div style="float: left; width: 200px" * middle column /div div style="float: rigth: width: 200px" * left column /div Any suggestions? Thanks! |
#4
| |||
| |||
|
|
If this is not the appropriate group for this post, please point me in the right direction. |
#5
| |||
| |||
|
|
table border="1" width="100%" tr td align="left">main content</td td width="200" align="left">middle column</td td width="200" align="right">left column</td /tr /table |
#6
| |||
| |||
|
|
Bart Van der Donck said: table border="1" width="100%" tr td align="left">main content</td td width="200" align="left">middle column</td td width="200" align="right">left column</td /tr /table This is not a good solution, |
|
because tables are meant for the tabular display of data, not page layout. The issues IE has with it's broken box model and nested table difficulties are reason enough, beside the fact it's generally considered a horrid coding practice to use tables for layout. |
|
The floating left column is the CSS "holy grail", as it were. Here's one tutorial on making it work anyway: http://www.ilovejackdaniels.com/css/...iquid-layouts/ |
#7
| |||
| |||
|
|
If this is not the appropriate group for this post, please point me in the right direction. I am trying to create a layout that has three main columns. [...] |
#8
| |||
| |||
|
|
When a table solution does exactly what you want it to do, and a CSS solution doesn't, you use the one that does what you want it to do. |
|
'action' is null or not an object |

|
Besides, it doesn't give a solution, it gives a hack to make it appear as if you have a solution. |
#9
| |||
| |||
|
|
I think I mentioned that it was illusory. Either way, the OP was asking about CSS, and I abhor table layouts. I have seen too many break too frequently and too easily. Getting started at a bad CSS tutorial is better than using tables and applying CSS to them. |
#10
| |||
| |||
|
|
CSS is on-topic in comp.infosystems.www.authoring.stylesheets, where more competent people probably have already discussed your problem a number of times. Suffice it to say that using any search engine before posting would have gotten you much farther. |
![]() |
| Thread Tools | |
| Display Modes | |
| |