Forum Moderators: open

Message Too Old, No Replies

netscape background tags

I'm having problems with netscape backgrounds

         

Moody54

7:49 am on Feb 8, 2004 (gmt 0)

10+ Year Member



Can anyone tell me why I've got a blue background in my scroller in Netscape; whereas it is transparent in IE? I simply want my webpage to be compatible with both browsers and I'm finding resistance. Please tell me what is wrong with my background attribute tags as Netscape will not behave. Please be gentle. I'm no pro.

hartlandcat

10:30 am on Feb 8, 2004 (gmt 0)

10+ Year Member



Please post on here how you have written your background tags. There is no way we can know what you've done wrong otherwise.

Moody54

9:18 pm on Feb 8, 2004 (gmt 0)

10+ Year Member



Below is the code from my scroller css file
I'm wondering why Netscape is defaulting to a blue background color that isn't used anywhere in the site.
//////////////////////////////////////////////////////

/* scroller background - TABLE */
.TScrBack0 {
background: transparent;
}
/* style to be applyed to all items' bodies
- SPAN in Netscape 4.x, TD in rest
all local stylesheets of external files if any are to be ignored */
.TScrItemBody0 {
background: transparent;
font-family: Verdana;
font-size: 11px;
text-align: justify;
padding: 5px;
}

hartlandcat

9:43 pm on Feb 8, 2004 (gmt 0)

10+ Year Member



Which version of Netscape are you viewing this in?

Moody54

10:00 pm on Feb 8, 2004 (gmt 0)

10+ Year Member



Netscape 7.1
But even dreamweaver MX 2004 is highlighting the code as incompatible with Netscape 4.0 and 6.0, although it offers no solutions.

bedlam

4:47 am on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Heya,

Try "background-color: transparent;"

I don't think there is such a thing as 'background' in css ;-)

-B

choster

5:32 am on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



such a thing as 'background'
There is; it is a shorthand.

background: <background-color> ¦¦ <background-image> ¦¦ <background-repeat> ¦¦ <background-attachment> ¦¦ <background-position>

So in theory, background:transparent should work, but background-color:transparent is more specific.

It would also help to have a snippet of the HTML, to see if there is a style conflict or something more basic, like a missing quotation mark, that could be causing the problem.

Moody54

6:17 am on Feb 10, 2004 (gmt 0)

10+ Year Member



There are four .js files, an html file, a .css file, and of course the index that it all runs in. I've tried dropping out the local .css file from the index so as not to conflict with the javascript scroller style sheet, but Netscape still shows blue. I did change the attribute to background-color: just in case. That didn't work either. I'm wondering if it's a matter of using span instead of td? Let me know what code you want to see.

bedlam

6:24 am on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



such a thing as 'background'

There is; it is a shorthand.

[!] I am suitably ashamed, thanks ;-)

-B