www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > Graphics

    Graphics Discussion and technical support for creating and editing graphics for the web.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 02-14-2003, 11:43 PM
    capctycr capctycr is offline
    Registered User
     
    Join Date: Feb 2003
    Posts: 1
    Question HELP>>Resize Image within table

    I want an image to resize within a table that is set at 100% so that the image is the largest it can be within the table without the horizontal scroll bar activating.
    Reply With Quote
      #2  
    Old 02-15-2003, 03:55 AM
    jdavia's Avatar
    jdavia jdavia is offline
    Well I came up with this
     
    Join Date: Dec 2002
    Location: Lake Havasu City, Arizona
    Posts: 528
    Re: HELP>>Resize Image within table

    Quote:
    Originally posted by capctycr
    I want an image to resize within a table that is set at 100% so that the image is the largest it can be within the table without the horizontal scroll bar activating.
    I don't think you can get it to re-size. You might have to use pixels in the table as well as for the image.
    The reason is that the table set to percents will fill the screen regardless of the resolution the viewers have, while the image size is set to pixels will not.
    Make table that is centered say about 800 and the image about 790. that allows for cellpadding. The reason for a centered table is so it wouldn't look one sided in a higher resolution. Center the image for the same reasons too.
    Reply With Quote
      #3  
    Old 02-15-2003, 01:07 PM
    pyro's Avatar
    pyro pyro is offline
    Registered User
     
    Join Date: Dec 2002
    Location: High on life
    Posts: 10,183
    Actually, you can.

    <img src="your.gif" height="100%" width="100%"> will fill the cell that it is in.
    __________________

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!
    Reply With Quote
      #4  
    Old 02-15-2003, 01:58 PM
    jdavia's Avatar
    jdavia jdavia is offline
    Well I came up with this
     
    Join Date: Dec 2002
    Location: Lake Havasu City, Arizona
    Posts: 528
    Will that override the set image sizes? If it does, the image will be distorted or stretched one way or the other to fit the screen?
    Reply With Quote
      #5  
    Old 02-15-2003, 01:59 PM
    Zach Elfers Zach Elfers is offline
    Registered User
     
    Join Date: Nov 2002
    Posts: 631
    Yeah. That will override the images set sizes unless the table is the size of the image. Then everything should be fine.
    Reply With Quote
      #6  
    Old 02-15-2003, 02:03 PM
    pyro's Avatar
    pyro pyro is offline
    Registered User
     
    Join Date: Dec 2002
    Location: High on life
    Posts: 10,183
    Yes, but it should work to only set the height, something like <img src="your.gif" height="100%">. This should keep it proportionally correct.
    __________________

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!
    Reply With Quote
      #7  
    Old 02-15-2003, 02:27 PM
    jdavia's Avatar
    jdavia jdavia is offline
    Well I came up with this
     
    Join Date: Dec 2002
    Location: Lake Havasu City, Arizona
    Posts: 528
    I tried a sample. If there is any description under the image it will cause a scroll bar. In other words nothing else can be on the page.
    But the image is distorted. So for various screen sizes it would not show the same.

    Last edited by jdavia; 02-15-2003 at 02:36 PM.
    Reply With Quote
      #8  
    Old 02-15-2003, 07:04 PM
    pyro's Avatar
    pyro pyro is offline
    Registered User
     
    Join Date: Dec 2002
    Location: High on life
    Posts: 10,183
    I wasn't saying that it wouldn't distort the image. I was just trying to show that you can specify percentage widths. If you have text under it, try a percentage width like 90%.
    __________________

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes 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 Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:40 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.