Solved

Style 'color' & NS4

Posted on 1999-01-26
3
276 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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 …

821 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