Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Style 'color' & NS4

Posted on 1999-01-26
3
Medium Priority
?
302 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
jedimike earned 40 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

705 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