Solved

Style 'color' & NS4

Posted on 1999-01-26
3
255 Views
Last Modified: 2013-11-19
I have tried to set the Font 'Color' property using both a linked Cascading Style Sheet file and an embedded style sheet definition and it will not change the font colors according to this setting.  

I am specifically setting the BODY tag to look like this:
BODY { color : #FFFFFF; background-color : #000000; }

it works in IE but not Netscape 4.5
Is there a setting in Netscape that I'm not thinking of (besides the 'enable Cascading Style Sheets' in Preferences)?

Has anyone ever seen this, and how do I get around it?
Thanks.
0
Comment
Question by:JHG
3 Comments
 
LVL 2

Accepted Solution

by:
jedimike earned 20 total points
ID: 1845654
background-color is buggy in N4+.
how about <body bgcolor="#000000" text="#FFFFFF">

a cheaper way if you absolutely need to use CSS is to use
background-image = blah.gif
where blah.gif is a black box. this is not buggy in IE or Netscape
and check out http://www.webreview.com/guides/style/mastergrid.html
this will tell you about all the CSS properties and the browsers they do and dont work in
0
 

Author Comment

by:JHG
ID: 1845655
Jedimike,
Thanks for your speed in answering my question.  I am limited to using ccs so the option for defining text colors in the actual tags is out.  

Please feel free to test this out, but it seems that even w/ your suggestion of using 'background: url(black.gif);', the color property of the font has no effect (in NS4).  I'm wondering if perhaps the chart you suggested should say that 'color' is buggy in netscape 4 as well as 'background-color'.

again, thanks for your timely answer.  I've given the points because you've answered the question.
0
 

Expert Comment

by:cwodtke
ID: 1845656
Of course it has no effect... don't use it on the body tag. body-background is buggy, but should work okay on NN4.5. To define the font color try

p{color:#FFFFFF}
or div{color:#FFFFFF}
and put these around your text. i've taken to using opening and closing <p> for this very reason.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
jquery, html5 UI 1 49
How to get statistic's from a competitors website?! 1 49
Newbie CSS questions 4 25
C3-->D3 Line Chart 4 19
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now