>I have a question about style sheets:  Is there a way to 
>define (name) colors once and then use that name instead of 
>the # number?  I also see in the style sheet a lot of 
>repeating styles, where I'd expect inheriting to work.  Is 
>that due to NS4 not inheriting correctly?

Yes of course you can.  That's exactly the point of CSS.  Eg:

.mycolour1 { color: black; }
.mycolour2 { color: blue; }
.mycolour3 { color: teal; }

And, of course, you can apply multiple styles at once, hence the
"cascading" in the title:

<div class="mycolour1">I'm black <span class="mycolour3">and I'm
teal</span>!</div>


Jonathan M. Hollin - WYPUG Co-ordinator

West Yorkshire Perl User Group
http://wypug.pm.org/
http://wypug.digital-word.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to