Welcome to WebmasterWorld Guest from 54.160.221.82

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)

Junior Member

10+ Year Member

joined:June 13, 2005
posts: 130
votes: 0


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 June 8, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:June 13, 2005
posts: 130
votes: 0


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 June 8, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Aug 9, 2008
posts: 961
votes: 0


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