View Full Version : PNG not displaying in any browser

10-02-2007, 04:01 PM
Hi all..

I stumbled across a strange problem..
Here's my CSS:

background:url(images/line.png) repeat-x;

Now if i remove the position:absolute, the image appears.. If i add it in the style, it disappears. The problem persists in Firefox and IE6, IE7.. Any help will be appreciated..

Thanks in advance!

10-02-2007, 04:21 PM
Got link? You may have to add a left or right declaration.

10-02-2007, 04:57 PM
I'm with aero--likely it's either a problem with z-index or the fact that you didn't supply a horizontal offset for it. Browser defaults can act weird in those cases.

Bill Posters
10-02-2007, 05:06 PM

10-02-2007, 05:07 PM

:eek: Sometimes you overlook the simple things!

10-02-2007, 07:22 PM
Yeah, width can throw it off.

Also, after you figure that out make sure that your positioning is right for where you have the item placed. The z-index and all that can be very touchy.

EDIT: Oh, and it would also help if we could look at what you are doing :P

10-03-2007, 06:27 AM
Doh! Yeah, I added width:100% and it worked. Thanks guys :)

10-03-2007, 06:02 PM
I have spent hours before trying to troubleshoot this exact problem. And almost every time I forget to declare a width.

I suggest we all put a sticky note on our monitor that says "WIDTH!" :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum