...

View Full Version : Sizing image within table within popup dynamically?



gorilla1
06-23-2002, 12:42 AM
I have a popup window, which contains on the left side an image 530x530, and on the right side a form with text area that requires 250 pixels. If the browser's available width turns out to be less than 780, then the form gets tossed under the image - not what I wanted. I guess the best way out is to have the image within a table with its width based on percentage, while the form area always is allocated a width of 250. But how do I code that? Do I need to write a script and change it dynamically? How do I get the image portion of the table to equal 100% of (available width - 250), when available width is less than 780? Thanks.

G

glenngv
06-24-2002, 02:42 AM
<table><tr>
<td width="530"><!--image here--></td><td width="250"><!--textarea here--></td>
</tr></table>


Originally posted by gorilla1
I have a popup window, which contains on the left side an image 530x530, and on the right side a form with text area that requires 250 pixels. If the browser's available width turns out to be less than 780, then the form gets tossed under the image - not what I wanted. I guess the best way out is to have the image within a table with its width based on percentage, while the form area always is allocated a width of 250. But how do I code that? Do I need to write a script and change it dynamically? How do I get the image portion of the table to equal 100% of (available width - 250), when available width is less than 780? Thanks.

G



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum