addNewStyleSheetByFullCSS

By JavaScriptSource Staff on Sep 25, 2006

General

Have you ever wanted to add a style sheet to your document using the full CSS without having to use addRules and insertRules? While this method is a bit “non-standard”, it’s a pretty nifty approach that can be expanded upon.


I am styling!

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: addStyleSheet.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Comments

Blog comments powered by Disqus