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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts

    Image "too small" in IE6

    Hey!

    If you go here: http://behrentzs.com/test/Photosite/ and look @ the only image at the site, you'll see that it fits different according to what browser you view it in.

    If you view it in FF, it looks like it should (the image fits the height of the div it's places in). If you view it in IE6, it dosn't.

    The image and div is both 25px in height, so I don't get why. Also, the padding and margins are reset to default with * in the css file.

    CSS: http://behrentzs.com/test/Photosite/style/style.css
    xhtml: View source

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Try by adding display:block to your img, but if you have more such images to be displayed inline, you may have to use float
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its not to small. The div is adding line-height. If no text is to be in that div then set the line-height to 0. If there will be text in there then do what abdurasoft recommended.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    The line-height method did not work, however when I added "display:block; float:left;" to the image, it sorted out.

    Thanks!

    EDIT: Damn.. After I did the above, the dropdown-javascript-menu (I know I should avoid these and use CSS) didn't work in Firefox. Try to click the image and see for yourself.
    Last edited by CaptainB; 12-22-2007 at 05:20 PM.

  • #5
    Regular Coder nolvorite's Avatar
    Join Date
    Dec 2006
    Posts
    176
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by CaptainB View Post
    The line-height method did not work, however when I added "display:block; float:left;" to the image, it sorted out.

    Thanks!

    EDIT: Damn.. After I did the above, the dropdown-javascript-menu (I know I should avoid these and use CSS) didn't work in Firefox. Try to click the image and see for yourself.
    Works for me . . .


  •  

    Posting Permissions

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