Forum Moderators: open
I have two tables, have an example here plus this is a test code:
<table width="100%">
<tr>
<td bgcolor="#0033FF" style="text-align: left; color: #ffffff;">Table A</td>
</tr>
</table>
<br>
<table width="800">
<tr>
<td bgcolor="#00FFFF" style="text-align: left; color: #000000;">Table B</td>
</tr>
</table>
Now, if you resize the window (not maximize it, make it like half your screen (( just like how it would show in a 640x480 enviornment )) now use the horizontal scroll bar and notice that Table A will not adjust to the screen size it seems to be "fixed" to that resolution or / window size, I want it to stretch along when you are scrolling horizontally with the scrollbar)
This is driving me nuts and i've searched google for countless days trying to find a fix but with no luck!
Any ideas are much appreciated! Thanks guys.
Plat
Does the same thing in Firefox and Internet Explorer
Table B must stay at 800px.
Cheers
Plat
<Sorry, no personal URLs.
See Forum Charter [webmasterworld.com]>
[edited by: tedster at 3:12 pm (utc) on Mar. 11, 2006]
Maybe you can get the effect you are after with javascript. The script would capture how far you've scrolled right and then use that number to set a new width for the table.
its not what I want though cause its just a min-width type fix. works in IE & Firefox but just sucks.
<style type="text/css">
<!--
#banner {width:100%; min-width:800px;} /* for most modern browsers */
#prop {width:800px;} /* IE work around */
-->
</style>then a div in whatever table you are using...
<td>
<div id="prop"><div id="banner"></div></div>
</td>
just sucks tho cause you only set it for certain width