Style Object listStyleType Property
Style Object
Definition and Usage
The listStyleType property sets the type of the list-item marker.
Syntax
|
Object.style.listStyleType=value
|
Possible Values
| Value |
Description |
| none |
No marker |
| disc |
The marker is a filled circle |
| circle |
The marker is a circle |
| square |
The marker is a square |
| decimal |
The marker is a number |
| decimal-leading-zero |
The marker is a number with leading zeros (01, 02,
03, etc.) |
| lower-roman |
The marker is lower-roman (i, ii, iii, iv, v, etc.) |
| upper-roman |
The marker is upper-roman (I, II, III, IV, V, etc.) |
| lower-alpha |
The marker is lower-alpha (a, b, c, d, e, etc.) |
| upper-alpha |
The marker is upper-alpha (A, B, C, D, E, etc.) |
| lower-greek |
The marker is lower-greek (alpha, beta, gamma, etc.) |
| lower-latin |
The marker is lower-latin (a, b, c, d, e, etc.) |
| upper-latin |
The marker is upper-latin (A, B, C, D, E, etc.) |
| hebrew |
The marker is traditional Hebrew numbering |
| armenian |
The marker is traditional Armenian numbering |
| georgian |
The marker is traditional Georgian numbering (an, ban,
gan, etc.) |
| cjk-ideographic |
The marker is plain ideographic numbers |
| hiragana |
The marker is: a, i, u, e, o, ka, ki, etc. |
| katakana |
The marker is: A, I, U, E, O, KA, KI, etc. |
| hiragana-iroha |
The marker is: i, ro, ha, ni, ho, he, to, etc. |
| katakana-iroha |
The marker is: I, RO, HA, NI, HO, HE, TO, etc. |
Note: Not all values above works in all browsers.
Example
Example
The following example changes the list-item marker type:
<html>
<head>
<script type="text/javascript">
function changeList()
{
document.getElementById("ul1").style.listStyleType="square";
}
</script>
</head>
<body>
<ul id="ul1">
<li>Coffee</li>
<li>Tea</li>
<li>Water</li>
<li>Soda</li>
</ul>
<input type="button" onclick="changeList()"
value="Change list-item marker type" />
</body>
</html>
|
Try it yourself »
|
Style Object
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|