CSS reference: list-style-image


/ Published in: CSS
Save to your folder(s)

This parameter determines the image address which serves as a list marker. This attribute is inherited; therefore value none is used for separate elements of the list for marker resto


Copy this code and paste it in your HTML
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
  5. <title>list-style-image</title>
  6. <style type="text/css">
  7. UL {
  8. list-style-image: url('images/book.gif');
  9. }
  10. </style>
  11. </head>
  12. <body>
  13.  
  14. <ul>
  15. <li>Lorem ipsum dolor sit amet</li>
  16. <li>Consectetuer adipiscing elit</li>
  17. <li>Sed diem nonummy nibh euismod</li>
  18. <li>Tincidunt ut lacreet dolore magna aliguam erat volutpat. Ut wisis
  19. enim ad minim veniam, quis nostrud exerci tution ullamcorper suscipit lobortis
  20. nisl ut aliquip ex ea commodo consequat.</li>
  21. </ul>
  22.  
  23. </body>
  24. </html>

URL: http://phpforms.net/tutorial/tutorial.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.