Hey all,
I want to know the 'Best Practice' for coding pages where they need to grow in a certain area.
EG:
A table with 3 columns. Column 2 is to fill the space when the browser window expands. Column 1 and 3 has nested tables in them.
To make the page scale the way I want at higher resolutions, I wouldmake column 1 and 3 a fixed width (in pixels) and make column 2 have a width of 100%.
This appears to work in both IE and NetScrape, but I want to know is this the best way to do it. Not just with 3 columns, but what if I wanted 6 columns, with columns 1,3 and 6 used to take up the space?
Code example as follows:
<table>
<tr>
<td width="200">This is where the sub table will go with content in it</td>
<td width="100%"> </td> <!-- this is the filling space -->
<td width="200">This is where the sub table will go with content in it</td>
</tr>
</table>
I want to know the 'Best Practice' for coding pages where they need to grow in a certain area.
EG:
A table with 3 columns. Column 2 is to fill the space when the browser window expands. Column 1 and 3 has nested tables in them.
To make the page scale the way I want at higher resolutions, I wouldmake column 1 and 3 a fixed width (in pixels) and make column 2 have a width of 100%.
This appears to work in both IE and NetScrape, but I want to know is this the best way to do it. Not just with 3 columns, but what if I wanted 6 columns, with columns 1,3 and 6 used to take up the space?
Code example as follows:
<table>
<tr>
<td width="200">This is where the sub table will go with content in it</td>
<td width="100%"> </td> <!-- this is the filling space -->
<td width="200">This is where the sub table will go with content in it</td>
</tr>
</table>