{"id":14067,"date":"2011-09-05T20:48:05","date_gmt":"2011-09-06T03:48:05","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14067"},"modified":"2021-04-23T09:19:19","modified_gmt":"2021-04-23T16:19:19","slug":"list-style","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/l\/list-style\/","title":{"rendered":"list-style"},"content":{"rendered":"\n

The list-style<\/code> property is a shorthand property that sets values for three different list-related properties in one declaration:<\/p>\n\n\n\n

ul {\n  list-style: <list-style-type> || <list-style-position> || <list-style-image>;\n}<\/code><\/pre>\n\n\n\n

Here’s an example of the syntax:<\/p>\n\n\n\n

ul {\n  list-style: square outside none;\n}<\/code><\/pre>\n\n\n\n

Which would be the same as the following longhand version:<\/p>\n\n\n\n

ul {\n  list-style-type: square;\n  list-style-position: outside;\n  list-style-image: none;\n}<\/code><\/pre>\n\n\n\n

In the shorthand, if any values are omitted, they will revert to their initial state.<\/p>\n\n\n

Values for list-style-type<\/code><\/h3>\n\n\n

The list-style-type<\/code> property defines the type of list by setting the content of each marker, or bullet, on the list. Acceptable keyword values for list-style-type<\/code> include:<\/p>\n\n\n\n