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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape Background Image

Status
Not open for further replies.

FurryGorilla

Technical User
Apr 11, 2001
76
GB
I'm using a css to look up the location of a background.

However, while this works fine in IE, the image does not display in Netscape (stupid thing >:-< ).

The css for the body part is as follows:

BODY.main {
MARGIN-TOP: 0px; BACKGROUND: url( #ffffff repeat-y left 50%; MARGIN-LEFT: 0px; COLOR: #000000; MARGIN-RIGHT: 0px
}

The HTML source includes <body class=&quot;main&quot;> and the correct link to the style sheet as all the fonts are correctly formatted.

Anyone have any ideas?

Thanks in advance
Chris
 
u could try specifying your style like this...

.main{background-image:url(myimage.gif); background-repeat:repeat-y; bgcolor:#ffffff; color:#ffffff; margin-top:0px; margin-right:0px; margin-left:0px}

i havent tested it but its more syntatically correct so netscrap is less likely to choke on it

also is the css external or in the document? sometimes ns gets confused with xternal stylesheets tho idont think it should affect this case..

hope this helps

rob
 
Hi,

I'm pretty sure NS interprets URL relative to the css while IE interprets it relative to the HTML page. So, if your css file is not in the same directory as your HTML pages, you might need to correct.

Bye.
 
Hi again,

Sorry, it's the other way around...

Bye.
 
That did it.

Thanks for the help crazyboypert and yahve.

Regards
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top