Styling the list part 3

The list-style Property



The list-style property is a shorthand property for setting list-style-type, list-style-image and list-style-position. It is used to set all of the list properties in one declaration:ul {
list-style: square outside none;
}

This would be the same as the longhand version.
ul {
list-style-type: square;
list-style-position: outside;
list-style-image: none;
}
Try It Yourself

Result:
If one of the property values are missing, the default value for the missing property will be inserted, if any.

Comments

Popular posts from this blog

font-family part 1