Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the direction and flow of the content in the object .
Syntax
{ writing-mode : sFlow } |
object.style.writingMode ( v ) [ = sFlow ] |
Possible Values
sFlow | String that specifies or receives one of the following values.
|
The property is read/write for all objects except the following, for which it is read-only: currentStyle . The property has a default value of lr-tb . The proposed Cascading Style Sheets (CSS) attribute is inherited by all objects with the following exceptions: BUTTON , CAPTION , INPUT , INPUT type=button , INPUT type=file , INPUT type=password , INPUT type=reset , INPUT type=submit , INPUT type=text , ISINDEX , OPTION , TEXTAREA .
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Remarks
The property is read-only for the currentStyle object.
The property does not accumulate. For example, if a parent element has the writingMode property set to tb-rl , setting a child element's writingMode property to tb-rl does not cause the child element to rotate.
An element has its own layout if the value for the writingMode property is different than its parent. When a change in layout flow is specified for a child element, the maximum logical height requirement (height in this element's coordinate system) is determined by the available space (width measurement) in the parent's coordinate system. Based on this information, a logical width (width in the child's coordinate system) is computed to meet the maximum logical height requirement. Depending on the amount of space needed by the child element, the actual logical height of the element can be less than the maximum logical height requirement.
When you use elements that have different values for the writingMode property, you can have greater control over the layout of those elements by specifying fixed dimensions for each one.
Example
The following example shows how to use the writingMode property to nest horizontal text inside vertical text.
<HTML>
Standards Information
This property is part of a proposed addition to Cascading Style Sheets (CSS) .
Applies To
|
A , ACRONYM , ADDRESS , B , BIG , BLOCKQUOTE , BUTTON , CAPTION , CENTER , CITE , CODE , currentStyle , CUSTOM , DD , DEL , DFN , DIR , DIV , DL , DT , EM , FIELDSET , FONT , FORM , hn , HR , I , INPUT , INPUT type=button , INPUT type=file , INPUT type=password , INPUT type=reset , INPUT type=submit , INPUT type=text , INS , ISINDEX , KBD , LABEL , LEGEND , LI , MARQUEE , MENU , OL , OPTION , P , PLAINTEXT , PRE , Q , RT , RUBY , runtimeStyle , S , SAMP , SMALL , SPAN , STRIKE , STRONG , style , SUB , SUP , TD , TEXTAREA , TH , TT , U , UL , VAR |
Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |