6 replies [Last post]
SprMa
SprMa's picture
Offline
newbie
Munich, Germany
Last seen: 17 years 36 weeks ago
Munich, Germany
Joined: 2004-01-12
Posts: 4
Points: 0

Hi.
I think, the IE is my nemesis.

If somebody can enlighten me, why the following problem occurs, I would be really thankful.

It's all about http://www.sanculina.de
Every page is combined from three parts. "head.php", "(actual content).php" and "foot.php". The first and last are static and the same for every page. The head.php ends at the <div class="inhalt">, the foot.php starts with the correspondending </div>. There's just one CSS (ok, there are actually two but the second is empty; for printing and handhelds).

IE shows every page just as it should - but slow as hell. Only on ./kontakt.php the IE loads the background graphic for the class "inhalt", followed by the content and then puts the background over a part of the text. Just on this single page.

I tried to "convince" the IE with "z-index" which class is intended "in front of" the other, but it's all the same to it.


As the Wee Free Men would say "Ach, crievens!"


Greetings,

SprMa
- Munich, Germany -

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 17 years 44 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

IE: background &quot;on top&quot; on just one site

When I looked at your site In IE I stated to have memory problems (display problems).

I then minimised the bad page and got a different result when I maximised again, and even another different result when I refreshed it.

I could not see any reason why at all, although I did not have a close look at how you were creating the transparency. Just in case I would remove the link to that empty.css as the browser may be doing something in the background.

If that does not work, I would try removing the transparency and see if the problem goes away.

Regards
Day

The only way to learn is to do it yourself

SprMa
SprMa's picture
Offline
newbie
Munich, Germany
Last seen: 17 years 36 weeks ago
Munich, Germany
Joined: 2004-01-12
Posts: 4
Points: 0

IE: background &quot;on top&quot; on just one site

The "transparency" is done with a background-image:url(./content.gif) in the style definition for the <div class="inhalt">
This content.gif is a 2x2 size image with two gray and two transparent pixels.
I don't think that this "graphic" should be a problem for the Internet Exploder...


SprMa

SprMa
SprMa's picture
Offline
newbie
Munich, Germany
Last seen: 17 years 36 weeks ago
Munich, Germany
Joined: 2004-01-12
Posts: 4
Points: 0

IE: background &quot;on top&quot; on just one site

I did a quick "hack". I used a <flame_me>table</flame_me> and now the IE does as it should. :?
But I do dislike tables when not displaying stuctured data.

For comparison see:
http://www.sanculina.de/kontakt.php - the table'd one
http://www.sanculina.de/kontakt1.php - the original one

It seems to me, the background-problem is a bug in IE. Hurray, another one. :roll:

But I'm a strong believer that no-one is perfect, so please see through my code and show me, where I went wrong!


SprMa

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 days 2 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

IE: background &quot;on top&quot; on just one site

Hi SprMa,
It's not so much the image that is causing the problem but the calculation the browser has to make to work out how many times to display it.
If you increase the size of the content image and IE wont have to work so hard.
It might also help to set a width and height for inhalt.

Hope that helps

SprMa
SprMa's picture
Offline
newbie
Munich, Germany
Last seen: 17 years 36 weeks ago
Munich, Germany
Joined: 2004-01-12
Posts: 4
Points: 0

IE: background &quot;on top&quot; on just one site

Tony wrote:
It's not so much the image that is causing the problem but the calculation the browser has to make to work out how many times to display it.

Ok. This would speed up the IE (on the other hand, a friend of my said: hey, wow, how did you do this effekt? *gg*)
Tony wrote:
It might also help to set a width and height for inhalt.

I would like to be dynamic with the height and width of "inhalt" so there won't be to much "border" around...


SprMa

Daybreak_0
Offline
Enthusiast
Sydney, Australia
Last seen: 17 years 44 weeks ago
Sydney, Australia
Timezone: GMT+10
Joined: 2003-11-15
Posts: 389
Points: 0

IE: background &quot;on top&quot; on just one site

SprMa wrote:

Ok. This would speed up the IE (on the other hand, a friend of my said: hey, wow, how did you do this effect? *gg*)
SprMa

Actually will speed up the users computer. I thought I was having memory problems, but now enlightened by Tony, it must of been the calculation going on. I was only moving notepad at the time which was opened over the browser and your site.

Regards
Day

The only way to learn is to do it yourself