The list-style-image property lets you replace default bullets or numbers with a custom image marker. It is useful for branded lists, feature highlights, and decorative navigation.
01
Image Markers
Custom bullets.
02
url()
Image path syntax.
03
none
Default value.
04
Fallback
Uses list-style-type.
05
Inherited
Set on ul or ol.
06
Branding
Icons and logos.
Fundamentals
Introduction
The list-style-image property in CSS allows developers to specify an image as the marker for list items. This property replaces the default bullet or number with a custom image, giving designers more control over the visual style of lists.
It is commonly used to enhance the appearance of lists in navigation menus, content sections, and other parts of a website. You can use PNG, SVG, GIF, or other image formats supported by the browser.
Definition and Usage
Apply list-style-image on ul, ol, or individual li elements. When an image is set, it takes priority over the marker from list-style-type. If the image cannot load, the browser falls back to the type marker.
💡
Beginner Tip
Keep marker images small (roughly 12–20 pixels). Large images can break list alignment and make text hard to scan.
Foundation
📝 Syntax
The syntax for the list-style-image property is straightforward. It can be applied to any list item (<li>) or parent list (<ul>, <ol>):
list-style-image: none clears the image marker so the list uses the normal disc bullet again.
A11y
♿ Accessibility
Decorative markers should not carry meaning alone — Important information belongs in the list item text.
Keep semantic list markup — Use real ul and ol elements even with custom images.
Provide alt text indirectly through content — CSS background and list marker images do not accept alt attributes.
Ensure markers remain visible — Low-contrast icons can be hard to see on some backgrounds.
Test without images — Verify fallback markers still make lists scannable if images fail.
🧠 How list-style-image Works
1
You provide an image URL
Set list-style-image: url(...) on a list or list item.
CSS rule
2
Browser loads the marker
If the image loads successfully, it replaces the default bullet or number.
Rendering
3
Fallback type remains available
If the image fails, list-style-type supplies a standard marker instead.
Resilience
=
🖼
Branded list markers
Lists gain custom visual identity while keeping semantic HTML structure.
Compatibility
🖥 Browser Compatibility
The list-style-image property is well-supported across all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera. Test your marker images in the browsers your audience uses to confirm appearance and alignment.
✓ Universal · All browsers
Custom list markers everywhere
list-style-image is widely supported and safe for production use with proper fallbacks.
99%Global browser support
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Legacy & Chromium
Full support
OperaAll versions · Modern & legacy
Full support
list-style-image property99% supported
Bottom line: Safe to use with fallback marker types. For modern flexible icons, some teams prefer custom CSS markers instead.
Wrap Up
🎉 Conclusion
The list-style-image property offers a simple way to customize the appearance of lists on your website by using custom images as list markers. This can enhance the visual appeal and brand identity of your site.
Experiment with different images and styles to see how this property can add a unique touch to your content. Keep marker assets small, provide a fallback type, and test in multiple browsers for the best results.