Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
list-style-type

list-style-type

Sets the predefined type of the line-item marker for the object.

{ list-style-type:sType }

sType

String that specifies or receives one of the following values:

disc

Default. Solid circles.

circle

Outlined circles.

decimal

1, 2, 3, 4, and so on.

lower-alpha

a, b, c, d, and so on.

lower-roman

i, ii, iii, iv, and so on.

none

No marker is shown.

square

Solid squares.

upper-alpha

A, B, C, D, and so on.

upper-roman

I, II, III, IV, and so on.

The property has a default value of disc. It is inherited.

The list-style-type property determines the appearance of the list-item marker if the value of the list-style-image property is set to none, or if the image pointed to by the URL cannot be displayed.

The list-style-type property can be applied to any element when margin and display:list-item properties are applied.

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.

The following example uses the list-style-type property to set the markers. This example uses the UL element as a selector in an embedded (global) style sheet to change the marker type to circle:

<style>
    ul {list-style-type:circle}
</style>

LI, OL, UL

Community Additions

ADD
Show:
© 2015 Microsoft