...

View Full Version : Image "too small" in IE6



CaptainB
12-22-2007, 02:09 PM
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

abduraooft
12-22-2007, 02:21 PM
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

_Aerospace_Eng_
12-22-2007, 04:03 PM
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.

CaptainB
12-22-2007, 05:45 PM
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.

nolvorite
12-27-2007, 05:12 AM
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 . . .



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum