List Style Shorthand Property

Last updated: 2026-09-13

list-style List Style Shorthand Property

list-style is the shorthand for list-style-type, list-style-position, and list-style-image, setting every aspect of list item markers at once. The default is disc outside none. It is the most efficient way to control list appearance, commonly used to quickly customize or reset list styles.

Category
Initial Valuedisc outside none
InheritedNo
Applies To
Animation Type
CSS VersionCSS1
StatusStandard

📝 Syntax

list-style: <list-style-type> || <list-style-position> || <list-style-image>;

⚙️ Values

ValueTypeDescription
<list-style-type> || <list-style-position> || <list-style-image>ValueList style shorthand

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
list-style v1 v12 v1 v1 v1
Supported in all major browsers
Tip: list-style: none is commonly used in navigation bars and similar places to remove the default list markers.
Tip: Unspecified sub-properties in the shorthand fall back to their defaults, so list-style: none clears both type and image.

❓ FAQ

QWhat is the difference between list-style: none and display: block?
Alist-style: none only removes the marker in front of each item; the li remains a list item with its semantics intact, and screen readers still recognize the list. display: block changes the element to block-level rendering, which can affect semantics and how assistive technology understands the list structure. To reset list appearance, list-style: none is enough — no need to change display.
QDoes the value order in the list-style shorthand matter?
AThere is no strict order — browsers distinguish values by type — but the recommended order is type, position, image, e.g. list-style: square inside none;. Note that unspecified sub-properties are reset to their defaults, so list-style: none clears both type and image.
QWhat is the difference between list-style: none and padding-left: 0?
Alist-style: none only removes the marker symbols; the browser's default left indent (roughly 40px of padding) remains. To align a list flush with surrounding text, combine list-style: none; padding-left: 0; margin: 0;. This is the classic reset trio — horizontal nav menus remove the dots and indent this way.
QWhich sub-properties does the list-style shorthand reset?
AAny sub-property you omit is reset to its default: type to disc, position to outside, and image to none. So if you set an image with list-style-image first and later write list-style: inside;, the image is cleared. When you only want to change one sub-property, use its longhand directly to stay safe.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏