Topic: no color with background color? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10870" title="Pages that link to Topic: no color with background color? (Page 1 of 1)" rel="nofollow" >Topic: no color with background color? <span class="small">(Page 1 of 1)</span>\

 
Lord_Fukutoku
Paranoid (IV) Inmate

From: West Texas
Insane since: Jul 2002

posted posted 12-06-2002 23:12

When I go to validate my style sheet, there aren't any "real" errors (after a couple of revisions ), only several warnings:

quote:
Line : 2 Level : 1 You have no color with your background-color : body
Line : 3 Level : 1 You have no color with your background-color : div.header
Line : 4 Level : 1 You have no color with your background-color : div.leftcol
.
.
.
Line : 11 Level : 1 You have no background-color with your color : span.comment
Line : 15 Level : 1 You have no background-color with your color : a
Line : 16 Level : 1 You have no background-color with your color : a:visited


And so on, for the whole page...

Do you actually have to declare both the color and background color of every element that supports those attributes?

Also, (kind of relating to my question in the html forum), does "text-align:center" not work with the <span> tag?


I might get the hang of this eventually...

brucew
Paranoid (IV) Inmate

From: North Coast of America
Insane since: Dec 2001

posted posted 12-07-2002 04:12
quote:
Do you actually have to declare both the color and background color of every element that supports those attributes?



Sing it with me... You can't have one without the other!

Keep in mind, transparent and inherit are also valid "colors".

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 12-07-2002 05:13

^ hehe

technically, you should.

will your apges cease to function if you don't? No.....

But you'll be sure to have covered all your bases if you do, and as brice said, transparent and inherit are valid and useful. So use them =)



Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-07-2002 08:43

Yup yup yup. Gotta do it. It's kind of like programming in Ada where things are designed to save you from yourself.

. . : slicePuzzle

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 12-07-2002 09:46

Regarding your other question. No, it won't work since <span> is an inline element. Use <div>

Lord_Fukutoku
Paranoid (IV) Inmate

From: West Texas
Insane since: Jul 2002

posted posted 12-08-2002 05:11

Ohhhh, that's where I'd seen transparent mentioned a couple times, now it makes sense.

And that's what I figured about the span tag, just wanted to make sure.


Ah, I love this place. Thanks ya'll.


-- Unoriginal Cell 693 --



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu