An Image as The List Item Marker in HTML and CSS - Tryit Editor for Web Developers
Edit This Code:
See Result »
<html> <head> <style> ul { list-style-image: url('logo.jpg'); border: 5px solid blue; } </style> </head> <body> <h1>An Image as The List Item Marker:</h1> <ul> <li>Tea</li> <li>Sandwich</li> <li>Coca-Cola</li> </ul> <br> <img src="logo.jpg"/> </body> </html>
Result: