HTML CSS Reference/CSS Attributes and Javascript Style Properties/text align last

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

"text-align-last" Example

    
<html>
<body>
<div onclick="this.style.textAlignLast="right"" 
     style="text-align:justify">
Sample text, aligned justify. 
<br><br>
Click to change last alignment to right.</div>
Outside the format.
</body>
</html>



"text-align-last" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<address>                       <blockquote>                  |
|                |<body>                          <center>                      |
|                |currentStyle                    <custom>                      |
|                |<dd>                            <div>                         |
|                |<dl>                            <dt>                          |
|                |<fieldset>                      <form>                        |
|                |<hn>                            <hr>                          |
|                |<isindex>                       <li>                          |
|                |<listing>                       <menu>                        |
|                |<ol>                            <p>                           |
|                |<pre>                           runtimeStyle                  |
|                |style                           <textarea>                    |
|                |<ul>                            <xmp>                         |
+----------------+--------------------------------------------------------------+



"text-align-last" Possible Values

Possible Values
auto (the default; ),
left,
inherit,
right,
center,
justify.



"text-align-last" Syntax and Note

Note:
Sets last line alignment.
Syntax:
    
element { text-align-last: value }
elementID.style.textAlignLast = "value"
document.all.elementID.style.textAlignLast = "value"