Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Firefox image scaling problem

  1. #1
    Join Date
    Sep 2008
    Posts
    77
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Firefox image scaling problem

    Hey all here is my page I am working on. As you can see the image won't scale, I want to scale it by height but it won't let me. Please help me. I've tried for a month already.... I got it to work on Safari though.

    The point of this is not having to shrink all my photos.


    John
    Last edited by jzhang1013; 12-21-2008 at 08:07 PM.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    You mean you want the image to be displayed smaller? Why not just shrink it in a photo app it will save load time and space.

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Do you want to get the image to be the same size as the browser window? Try setting the position of the wrapping div (#x) to relative and the margin of the image to 0.

  4. #4
    Join Date
    Sep 2008
    Posts
    77
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Snookerman View Post
    Do you want to get the image to be the same size as the browser window? Try setting the position of the wrapping div (#x) to relative and the margin of the image to 0.
    The same height yes, width no.

  5. #5
    Join Date
    Sep 2008
    Posts
    77
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    thing is that I simply coded it here and it works both in safari and firefox, but it doesnt work with my code i have now......

  6. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Remove the width="100%" from the image then.

  7. #7
    Join Date
    Sep 2008
    Posts
    77
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    there is no width="100%" on the image. unless you spotted it somewhere? Main problem is that Firefox is ignoring and overriding my div container and allowing the image within the container to be bigger than the container itself....
    Last edited by jzhang1013; 12-21-2008 at 11:29 PM.

  8. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    This is what I see in Firebug:
    Code:
    <img height="100%" width="100%" src="/img/x.gif"/>

  9. #9
    Join Date
    Sep 2008
    Posts
    77
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    no no the code under it is what I'm trying to change
    PHP Code:
    <div id="image"><img src="yadayada.jpg" alt="" /></div

  10. #10
    Join Date
    Sep 2008
    Posts
    77
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    no more input?

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
  •