HTML CSS examples for CSS Widget:Image Text
line up image of <li></li> with its text when the image used for the bullet point
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul.purple li { font-family:Arial, sans-serif; font-size:100%; color:Chartreuse; background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat left top; padding:9px 0px 4px 36px; list-style:none; margin:0; } </style> <!--from ww w .java 2 s. c o m--> </head> <body> <ul class="purple"> <li>Lorem ipsu</li> <li>Lorem ipsu</li> </ul> </body> </html>