Log in

View Full Version : IE 6 float problem



dekra
11-13-2008, 11:09 PM
Hey all, I've searched and found one IE 6 float problem, but not the same as I'm experiencing. The website below has been checked in all browsers and works great, except IE 6 cuts the page of at the bottom of the loaded content and doesn't load the footer. Any suggestions?

http://sandbox.gc-worldwide.com/

Tks.

monicasaha
11-14-2008, 06:50 AM
add this code in your layout css instead your css


#image_viewer {
width: 400px;
height: 380px;
border: 1px solid #8f8f8f;
display:block;
float:left;
}
br.spacer{
font-size:0;
line-height:0;
clear:both;
}

#content {
width: 425px;
padding: 5px 10px 5px 10px;
margin-bottom: 1em;
border-top: 1px solid #b3b3b3;
float:right;
}

definately use this br class after you end your floating i.e after you end #content in html

dekra
11-14-2008, 11:45 AM
Hi Monica, that got it, thanks! Any idea how to get rid of that small white space under the images in IE 6? You would need flash disabled as it falls back to random images loaded.

monicasaha
11-14-2008, 12:29 PM
my pleasure..

but i cant understand where you want to remove space under the images in your website.. but still if u want that... u need to declare this..


img{
padding:0;
margin:0;
border:none;
}

dekra
11-14-2008, 02:23 PM
If you disable flash the image viewer is populated with a random jpg. There is a small white gap at the bottom in IE 5.5 & 6. I know how to turn off image padding and borders and tried that, but it still doesn't work which is why I'm confused. Not a big deal really, but I'm picky for these things.

monicasaha
11-15-2008, 04:06 AM
then try display:block;

dekra
11-15-2008, 12:01 PM
That did it! Thanks for your help monica, going to make the site live later today. What do you think of it? Always good to get feedback.

The only browser it doesn't work in is IE 8 beta, but I don't think it a good idea to start making hacks for a beta browser, whats your thoughts?

New uri is http://concept-croatia.com

monicasaha
11-17-2008, 05:50 AM
hii

i got that.. but can u specifically say where u got the prob in IE 8.. becoz i couldnot find any fault there..by ur url..
if ur problem is solved plz make it"resolved".

and for the hacking concept.. i think it feel very bad for a coder to hack..but if any browser works without any sense then we have to do that.no other option left..
but mozilla gets our confidence back...so chill

thanks