Stylesheet Tag Example

The <dotj:stylesheet> tag can be used to obtain information from a Cascading StyleSheet (CSS) file. Once the CSS file has been loaded and parsed by the tag, various style information can be obtained by scripting the tag.

NOTE: The CSS file must be in a certain format for this to work. A style must be defined like this:

.myStyle {
   color: red;
   ...
   font-size: 8pt;
}

Stylesheet: /style/dotj.css

Value of attribute background-color for style DialogBoxTitlebar: #6597CA

This text uses the background color defined by the style called DialogBoxTitlebar.


List of styles in the stylesheet:


          Back to Samples page


home : products : pricing : company : contact us : samples : download : forums : customers

Copyright © 2000-2004 dotJ Software Inc. All rights reserved.