Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q5406 Can do I have a primary and secondary CSS style sheet?

You are here: irt.org | FAQ | CSS | Q5406 [ previous next ]

Yes!

What happens is, that you have defined your P-tag as Verdana. For some reason, you then want all files in the /garamond/ subdirectory to use Garamond instead of Verdana.

Instead of defining a class, you just import another css file using the following code:

 <STYLE>
   @import url(basic.css);
   @import url(garamond.css);
 </STYLE>

If you use this in all files in the subdirectory, declarations in garamond.css will override settings from the "basic.css" style sheet, since it comes later in the cascade. M/p>

This concept, is also possible in RDF, where you can have multiple DTD's as your vocabulary.

©2018 Martin Webb