Log in

View Full Version : Problem with backround image in IE7.



markpap
07-12-2007, 12:30 AM
Hi everybody,
I have a strange problem with background td images in IE7.

Just see the above URL:
http://www.tsilivi.gr/conems_visit/home/en_main-page.html

It's a dynamically driven site made by me. As you can see, all tables at the left (menu area) have no problems with the blue background. But, in the main area everyone has problems. This problems doesn't happen in Firefox :confused:

Moreover, this site has utf-8 encoding. The language in the main area above picture is greek. At the section Last Forum Posts are the boards of SMF forum installed, using SSI.php. As you can see, everything is ok but forum posts have bad encoding! What is going wrong???

I'm searching for a solution 3 days now, but nothing!!!
Please help me!
Thanks

mburt
07-13-2007, 02:32 PM
First things first: I strongly advise against using tables for layouts. I realize that alot of work goes in to these things, so I'll leave you to make the decision on whether to change or not.

The problem you are getting in IE is because of the height differences between the browsers. In FF the height 25 works fine, but in IE it should be 23 or 22. This happens because the two browsers calculate margins and padding differently. You can try it using CSS with an IE hack:

style="height:25px;<--height:23px-->"