Change Language


Follow Navioo On Twitter

CSSStyleSheet : StyleSheet

CSS style sheet.

Platform Support

IE Mozilla Netscape Opera Safari
6.0+ 1.0+ no 9.0+ 1.0+

Constructors

Constructor Action IE Mozilla Netscape Opera Safari
CSSStyleSheet Constructor() : CSSStyleSheet
CSS style sheet.
Show Details 6.0+ 1.0+ no 9.0+ 1.0+

CSSStyleSheet() : CSSStyleSheet

CSS style sheet.

Returns

CSSStyleSheet
Visibility
internal

Inherited Properties

Property Action IE Mozilla Netscape Opera Safari
disabled : Boolean
If true, indicates that the stylesheet is disabled.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

Availability

HTML DOM Level 2|W3C

href : String
URL for the stylesheet.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

Availability

HTML DOM Level 2|W3C

media : MediaList
List of media types that the stylesheet should be associated with.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+
Availability

HTML DOM Level 2|W3C

ownerNode : Node
Document node that contains the link to the stylesheet.
Show Details no 1.0+ 6.0+ 7.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

Availability

HTML DOM Level 2|W3C

parentStyleSheet : StyleSheet
Parent stylesheet to this stylesheet.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

Availability

HTML DOM Level 2|W3C

title : String
Title of the stylesheet.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/javascript/dhtml/innerHTML_Example_4506.html

Availability

HTML DOM Level 2|W3C

type : String
MIME type for the stylesheet.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+
Availability

HTML DOM Level 2|W3C

Properties

Property Action IE Mozilla Netscape Opera Safari
cssRules : CSSRuleList
Array of CSSRule objects in the style sheet.
Show Details no 1.0+ no 9.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

Availability

HTML DOM Level 2|W3C

ownerRule : CSSRule
Specifies the CSSImportRule object for imported style sheets. Specifies null if the style sheet is not imported.
Show Details 6.0+ 1.0+ no 9.0+ 1.0+
Availability

HTML DOM Level 2|W3C

Functions

Method Action IE Mozilla Netscape Opera Safari
deleteRule(Number index) : void
Deletes a CSS rule at the specified position in the CSSRules array.
Show Details no 1.0+ no 9.0+ no

Parameters

Number index Position of the rule in the CSSRules array.

Returns

void

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

See Also

CSSStyleSheet.insertRule

Availability

HTML DOM Level 2|W3C

insertRule(String rule, Number index) : Object
Inserts the specified rule into the style sheet at the specified position.
Show Details no 1.0+ no 9.0+ no

Parameters

String rule Complete text for the CSS rule to be inserted.
Number index Position in the CSSRules array where the rule is to be inserted.

Returns

Object

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

See Also

CSSStyleSheet.deleteRule

Availability

HTML DOM Level 2|W3C

References

StyleSheet

Availability

HTML DOM Level 2|W3C

text_javascript Navioo_docs

Ajax Javascript feed

↑ Grab this Headline Animator