HTML CSS Reference/CSS Attributes and Javascript Style Properties/background position x

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

"background-position-x" Example

   <source lang="html4strict">
   

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

www.wbex.ru
           








www.wbex.ru
           Text

</body> </html>


     </source>
   
  


"background-position-x" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <address> | | | |

| |
<body> |

| |<button> |

| |
|

| | <col> | | |<colgroup> <custom> | | |

defaults | | | <dir> |

| |
|

| |

| | |<fieldset> <form> | | |<hn> <html> | | | <img> | | |<inputtype="button"> <input type="checkbox"> | | |<input type="file"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <inputtype="submit"> | | |<input type="text"> <isindex> | | | <label> |

| |<legend>
  • | | |<listing> <marquee> | | |<menu>
      | | |

                               |
      |                |runtimeStyle                                               |
      |                |                                                 |
      |                |                                                |
      |                |                        style                         |
      |                |                                                    |
      |                |                         <tbody>                       |
      |                |                          |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "background-position-x" Possible Values

        <source lang="html4strict"> Possible Values length A floating-point number followed by a unit designator. percentage percent is based on the height and width of the element. constant left, center, or right for the horizontal alignment and top, center, or bottom for the vertical alignment

        </source>



        "background-position-x" Syntax and Note

        <source lang="html4strict"> Note: Set the horizontal coordinate the left position. Syntax:

        element { background-position-x: value } elementID.style.backgroundPositionX = "value" document.all.elementID.style.backgroundPositionX = "value"


        </source>

      <textarea> | | |<tfoot> | | |<thead>