I have created a wrapper using the sliding doors technique and then made a three column layout. I put in an image for the banner. The problem is the banner image looks fine in IE8 but overhangs the wrapper to the right in firefox.
I messed about a bit with the sizes of the banner but it seems if I get it right in one the other browser does not look right.
Hi, it seems a rounding error the browsers have with the margin you declared for the header: 2.1%. Try changing it to 2% and see if that gets it better.
I tried as you both advised and it does cut the image off slightly in firefox. I suppose i will just have to target i.e.browsers with a seperate css for this do you think?
Conditional comments won’t be needed, granted I can’t help you right now due to me having to leave, but if noone responds by the time Iget back I’ll take a look :). YOu rarely ever need CC’s
Hi Paul, I really thought i had cracked it with this technique but its really causing problems. You hve actually found a problem other than the one the thread was about but it is probably more major.
I dont think im making the wrapper large enough. Mine is only about 1000px. Width wise it should really be double that shouldnt it?
Can i use max width on IE8? and would it go in #wrapper or .wrapper?
I think i need to get this sorted before i return to the other problem.
Thanks for that. i put the max-width in as 1100 which is the same width as right and left images together.
Now back to the original problem.
I have just put a graphic in the banner to prove (terrible picture - sorry) but in ie it fits perfect. In firefox it is far short of the size of the wrapper. Could this be a case for conditional comments or am i missing something?
Hi, to fix IE6/7 (this is not addressing your problem, you need to fix the double float margin bug on “#mainNav” and then offset the rounding errors (a -1px margin will patch it up)
I don’t see IE6/7/8/FF/Opera appearing any differently though as far as the graphic in the banner
Thanks for all the stuff you put into this problem. It has boiled down to a problem with firefox itself. A virus i think. It wasnt refreshing for some reason. There has been something wrong for some time so i tried system restore on the computer. And now both pages in IE and firefox look fine. No wonder it looked fine on your computer!!