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

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

"list-style-position" Example

   <source lang="html4strict">
   

<html> <body>

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

</body> </html>


     </source>
   
  


"list-style-position" is applied to

   <source lang="html4strict">

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

| Applied_To |currentStyle
  • | | |
      runtimeStyle | | |style
        | +----------------+--------------------------------------------------------------+ </source>

        "list-style-position" Possible Values

           <source lang="html4strict">
        

        Possible Values outside (default) inside.


             </source>
           
          
        


        "list-style-position" Syntax and Note

           <source lang="html4strict">
        

        Note: Controls the list item marker position relative to its text. Syntax:

        element { list-style-position: value } elementID.style.listStylePosition = "value" document.all.elementID.style.listStylePosition = "value" //IE only


        </source>