HTML CSS Reference/CSS Attributes and Javascript Style Properties/list style

Материал из Web эксперт
Перейти к: навигация, поиск

"list-style" Example

   <source lang="html4strict">
   

<html> <head> </head> <body>

  • Item 1.
  • Item 2.
  • Item 3.
  • Item 4.
  • Item 5.

</body> </html>


     </source>
   
  


"list-style" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+

| Applied_To |
    1. | | |runtimeStyle style | | |
        | +----------------+--------------------------------------------------------------+ </source>

        "list-style" Syntax and Note

           <source lang="html4strict">
        

        Note: Controls three different list-style style properties:

          list-style-type, 
          list-style-position,
          list-style-image. 
        

        Syntax:

        element { list-style: value } elementID.style.listStyle = "value" document.all.elementID.style.listStyle = "value"


        </source>