list-style-type Attribute | listStyleType Property
Sets or retrieves the predefined type of the line-item marker for the object.
Syntax
HTML { list-style-type: sType } Scripting object.style.listStyleType [ = sType ]
Possible Values
sType String that specifies one of the following values:
disc Solid circles. circle Outlined circles. square Solid squares. decimal 1, 2, 3, 4, and so on. lower-roman i, ii, iii, iv, and so on. upper-roman I, II, III, IV, and so on. lower-alpha a, b, c, d, and so on. upper-alpha A, B, C, D, and so on. none No marker is shown. The property is read/write with 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 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.
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.
Example
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.
Sample Code
<STYLE> UL { list-style-type:circle } </STYLE>This feature requires Internet Explorer 4.0 or later. Click the icon below to install the latest version. Then reload this page to view the sample.![]()
This example uses inline scripting to change the marker type on when an onmouseover event occurs.
<UL onmouseover="this.style.listStyleType='circle'">
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. currentStyle, LI, OL, runtimeStyle, style, UL
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.