Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS image sparadic display 1

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi,

I can't understand why the bottom image on my left hand column , sometimes displays and sometimes doesn't.

it's not an error on the page as i've validated both X/HTML & CSS, and there seems to be no rhyme or reason when it decides to not displat the bottom graphic.

A refresh of the browser always displays the image.

It seems to do it in IE only from what I can tell.

Any ideas?


thanks, 1DMF.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Do you mean the graphic with the bottom left and right curves on? If so, it displays fine for me in IE 6 and IE 7 over many refreshes.

Or, do you mean another image which I can't see because it isn't loading?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
the bottom line on the cureved edge on the left hand box.

don't refresh, click the links in that box and you will see on occasion it doesn't show.

refresh and it does, driving me mad, happens on my work PC , home PC, missus laptop, so must happen to you guys :-(

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
It's the ol disappearing div background IE bug.

It's not showing because you are putting a background image in a div that is floated left (not directly, but through parent nodes)


give that div class="bb" a

position: relative

That should fix it.


[monkey][snake] <.
 
didn't work :-(

funny how the right hand box is made up of the same class and it doesn't do it to that one?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
I can visit every link in the left-hand box in both IE 6 and IE 7 and it always shows... which I'd expect as a page reload should be no different to a refresh.

What version of IE are you seeing this in, and roughly how often? Have you tried clearing your cache?

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
IE7 v7.0.5730.11 . it seems to happen when it feels like, but fairly often.

I cleared my chace @ 5 times today, no go?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
nope, I've given the .bb and .bb div a line-height and position:relative, it's still happening!

damn you IE!!!!!!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
woohoo - I fixed it!

it was the old empty div syndrome, which I thought normally affected the compliant browsers rather than IE, but there you go, always an exception to the rule, that's me! :)

all I did was add a hard coded space in the empty div and it hasn't happened again.

Code:
<div class="bb">
    <div>[b]&nbsp;[/b]</div>
</div>

Thanks Vragabond, see I can apply knowledge you teach me from other threads else where, even if a bit slow on the uptake!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Oh damn, I was going to say that (try adding &nbsp), but I can't prove it. [cry]

Good job 1DMF.

[monkey][snake] <.
 
i beleive you , thousands wouldn't :p

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Getting thanked even though I didn't write anything? Wow, I'm getting good at this. Now you can star me. :)

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
no probs, I was waiting for you to pop in so I could.
[2thumbsup]


"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top