Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Strange and Unexplainable CSS Problem, Exclusive to Chrome

Disappearing image



11:14 am on Jun 8, 2012 (gmt 0)

10+ Year Member

I'm developing a home page. It has an image at the top, positioned absolute to the right and top. I'm using z index to make this image appear behind some text.

Everything works fine in all (modern) browsers.

However, when you navigate away from the page and then back to it the image is not visible (or is not displaying).

Only when resizing the screen (to make a different CSS media querues kick in), reloading the page, or inspecting an element, does the image reappear.

This only happens in Chrome -- none of the other browsers.

At first I assumed it was a z index issue. I tried a few things but nothing worked. I narrowed the problem down to the position absolute. When this is removed the problem stops occurring.

Is this something anyone else has seen before?!

Any ideas on what I can do to fix it?

Many thanks in advance for any advice given.


12:38 pm on Jun 8, 2012 (gmt 0)

10+ Year Member

I've solved this. It was actually to do with a height: 100% on the image, which i've now set to a fixed pixel height.

Most likely a glitch from Chrome.


1:48 pm on Jun 8, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

Interesting publicshpere, how odd. "Glitch" or bug in Chrome do you think? - Or just code not working as desired?

Featured Threads

Hot Threads This Week

Hot Threads This Month