Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,968
    Thanks
    0
    Thanked 236 Times in 233 Posts

    Re: Sizing image within table within popup dynamically?

    <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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •