PDA

View Full Version : Some differences between IE en FF


tijmen_4real
05-23-2009, 01:54 PM
Hi !

I got a banner on my forum index. It should look like this (and does in Mozilla FF):
http://www.deorvanheemskerk.nl/bugs/banner_ff.JPG

But in IE7 and 8 it looks like this: (floating above)
http://www.deorvanheemskerk.nl/bugs/banner_ie.JPG

It controlled with this (https://vborg.vbsupport.ru/showthread.php?t=208833) code

And a similar problem is going on with the background image of the board.
Mozilla FF:
http://www.deorvanheemskerk.nl/bugs/bg_ff.JPG

IE: (no image)
http://www.deorvanheemskerk.nl/bugs/bg_ie.JPG

Controlled with the code in Main CSS, part BODY:
#ffffff url(http://www.deorvanheemskerk.nl/images/bg_body.gif)

How does this have to change in order to work correctly in both browsers?
Greetz,

Tijmen

Lynne
05-23-2009, 03:17 PM
It's very hard to figure out what is going on from just images. In the first one, perhaps there is an extra line break. Or, maybe some padding. As for the second one, again, hard to tell - look at all the different class affecting the area and see what the 'last' class is that is called and if it's overwriting the background you want.

Collectoville
05-23-2009, 05:24 PM
paste this CSS into your body { } and your background should work on both browsers... also be sure your body css is not defined as class (.body) or id (#body)

background: #FFF url(images/bg_body.gif) repeat-y fixed center top;

about the image problem: looks like a "width" problem to me. Be sure your divs' widths and paddings are not "crossed" in any way (i.e. having a main div container with 500 width, and a float:left div 300width, plus a float:right div with 350width, will result in a "vertical problem" like the one you're experiencing. Explorer does it right, whenever total width exceeds container's width (paddings included), it puts a <br>, while mozilla seems to mostly "ignore" wrong paddings).

tijmen_4real
05-23-2009, 05:29 PM
paste this CSS into your body { } and your background should work on both browsers... also be sure your body css is not defined as class (.body) or id (#body)

background: #FFF url(images/bg_body.gif) repeat-y fixed center top;

Thanks, but this code gives me a blank background in both browsers :(

Collectoville
05-23-2009, 05:34 PM
Thanks, but this code gives me a blank background in both browsers :(

Maybe you just have to find the best css setup depending on your bg image's width and/or height :) Try
'
background: #FFF url(http://www.deorvanheemskerk.nl/images/bg_body.gif) repeat center top;

tijmen_4real
05-23-2009, 05:51 PM
Yes, i found the answer throught this link (http://www.webcredible.co.uk/user-friendly-resources/css/internet-explorer.shtml) !!!

--------------- Added 1243104900 at 1243104900 ---------------

Fixed the other problem too:
changed top - left -> bottom - left
And removed the vertical alignment of the text

Thanks for giving me the right 'push' !!