SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist FCC's Avatar
    Join Date
    May 2006
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table width and IE Wierdness

    Hi all,

    Take a look at this page:

    http://202.71.227.137/rehab/CMS/cmsa...Untitled-5.htm

    I simply want the image on the left to be 10% of the table width. I've accomplished this in FF with:

    Code:
    <td width='10%'><img src="../../../Mental Handicapped/Introduction/Pictures/pic1.jpg" width='100%'></td><td>j</td>
    But in IE, the image on the left takes it's original size.....how can I fix this?

  2. #2
    SitePoint Evangelist FCC's Avatar
    Join Date
    May 2006
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone/

  3. #3
    Non-Member lostseed's Avatar
    Join Date
    Sep 2005
    Location
    Zurconion Soon!
    Posts
    1,549
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <img src="../../../Mental Handicapped/Introduction/Pictures/pic1.jpg" width='100%'>

    width="whatever you want" height="whatever you want.

    Firefox is resizing it based on the table width, IE is not. Also you should use width="100%" with double quotes.

  4. #4
    Non-Member lostseed's Avatar
    Join Date
    Sep 2005
    Location
    Zurconion Soon!
    Posts
    1,549
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you should have the picture the size you want and not rely on a table to fit to it though. That will make pages load longer and look less quality with a big image resized by the browser.

  5. #5
    SitePoint Evangelist FCC's Avatar
    Join Date
    May 2006
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lostseed
    you should have the picture the size you want and not rely on a table to fit to it though. That will make pages load longer and look less quality with a big image resized by the browser.
    Unfortunately, I am grabbing images directories from the database and the images come in a variety of sizes which is why I can't do that.


Bookmarks

Posting Permissions

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