Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | CSS | Q5406 [ previous next ]

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

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.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.