Re: Invisible text

by "Jeanne A. E. DeVoto" <jaed(at)jaedworks.com>

 Date:  Tue, 20 Jun 2000 18:05:29 -0700
 To:  "Lauri V�in" <optima(at)hot.ee>,
"HWG Techniques" <hwg-techniques(at)hwg.org>,
"Moe Rubenzahl" <moe(at)maxim-ic.com>
 In-Reply-To:  koll
  todo: View Thread, Original
At 1:26 AM -0700 6/20/2000, Lauri V�in wrote:
>I'm not quite sure about this as I'm not a CSS expert. However as far as I
>know you can make a style sheet, specify the background color, text color,
>link color etc. Then you should add the "!important" statement. It should
>override *ANY* user settings and fix the problem.

Why would you want to abuse the !important directive to impose your own
color preferences on the user? The directive is for use when a style choice
actually *is* important - that is, when information will be lost if the
user doesn't see the preferred style. That's almost never the case.

(In any case, with most browsers a user's !important directive overrides
one on a page. The user can always shut off style sheets - and more people
will if they're abused in this sort of way.)

>Be extremely careful that you DO NOT have any text on your page that may be
>defined as invisible text by the search engines, they may remove your site
>from the search results.

Search engines do this with text whose color is defined to be the same as
the background color. That wasn't the case with the original poster's page
- the text color isn't defined at all. However, one could run into this
problem if:

- You're using text color that's close to the background color to get
subtle effects - for instance, creating a large bold light-gray heading on
a white background might trip a search engine's colors-too-close filter

- You're using a colored table to get "reversed" text - for instance, if
your background color and text color are both defined in the <body> as
black, and you use a table whose backgroundColor is white (so you have a
white block with black text, floating against a black background), the
search engine might not notice the table and think you were trying the
spammer's trick.

--
jeanne a. e. devoto ~ jaed(at)jaedworks.com
http://www.jaedworks.com

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA