Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the predefined type of the line-item marker for the object .
Syntax
{ list-style-type : sType } |
object . style.listStyleType [ = sType ] |
Possible Values
sType | String that specifies or receives one of the following values.
|
The property is read/write for all objects except the following, for which it is read-only: currentStyle . The property has a default value of disc . The Cascading Style Sheets (CSS) attribute is inherited.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Remarks
The listStyleType property determines the appearance of the list-item marker if the value of the list-style-image attribute is set to none , or if the image pointed to by the URL cannot be displayed.
The listStyleType property can be applied to any element when margin and display : list-item are applied. The display : list-item property is available as of Microsoft® Internet Explorer 6 and later.
If the left margin of a line item is set to 0 using one of the margin properties, the list-item markers do not show. The margin should be set to a minimum of 30 points.
Examples
The following examples use the list-style-type attribute and the listStyleType property to set the markers.This example uses ul as a selector in an embedded (global) style sheet to change the marker type to circle .
<STYLE> UL { list-style-type :circle } </STYLE>This example uses inline scripting to change the marker type on when an onmouseover event occurs.
<UL onmouseover="this.style.listStyleType ='circle'">Standards Information
This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) .
Applies To
|
currentStyle , LI , OL , runtimeStyle , style , UL |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |