Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-22-2002, 11:42 PM   PM User | #1
gorilla1
Regular Coder

 
Join Date: Jun 2002
Posts: 544
Thanks: 0
Thanked 0 Times in 0 Posts
gorilla1 is an unknown quantity at this point
Sizing image within table within popup dynamically?

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
gorilla1 is offline   Reply With Quote
Old 06-24-2002, 01:42 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Re: Sizing image within table within popup dynamically?

<table><tr>
<td width="530"><!--image here--></td><td width="250"><!--textarea here--></td>
</tr></table>

Quote:
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
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:08 AM.


Advertisement
Log in to turn off these ads.