Specifies or returns the flow and direction of the content in an element.
This property is deprecated, use the writingMode property instead.
You can find the related objects in the Supported by objects section below.
This property is read/write.
CSS page for this property: layout-flow |
The type of this property is string.
Default. Content flows from left to right. | |||||||
Content flows from top to bottom. |
Default: horizontal.
This example illustrates the use of the layout-flow property:
|
||||
<head> <style> .example { layout-flow: vertical-ideographic; } </style> </head> <body> <div class="example">vertical-ideographic</div> </body> |
||||
|
||||
Did you find this example helpful?
|
This example illustrates the use of the layoutFlow property in JavaScript:
|
||||
<head> <script type="text/javascript"> function ChangeLayout (selectTag) { // Returns the index of the selected option var whichSelected = selectTag.selectedIndex; // Returns the selected options values var selectState = selectTag.options[whichSelected].text; var div = document.getElementById ("myDiv"); if ('layoutFlow' in div.style) { div.style.layoutFlow = selectState; } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> <div id="myDiv" class="example">Change the value of layout-flow property</div> <br /> <select onchange="ChangeLayout (this);" size="2"> <option selected="selected" />horizontal <option />vertical-ideographic </select> </body> |
||||
|
||||
Did you find this example helpful?
|
CSSStyleDeclaration, htmlElement.currentStyle, htmlElement.runtimeStyle, htmlElement.style
HTML elements:
a, abbr, acronym, address, b, bdo, big, blockquote, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:hidden, input:image, input:password, input:radio, input:reset, input:submit, input:text, ins, isindex, kbd, label, legend, li, listing, marquee, menu, nobr, ol, p, pre, q, rt, ruby, s, samp, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tt, u, ul, var, xmp
imeMode
layoutGrid
layoutGridChar
layoutGridLine
layoutGridMode
layoutGridType
rubyAlign
rubyOverhang
rubyPosition
textJustify
textKashidaSpace
unicodeBidi
layoutGrid
layoutGridChar
layoutGridLine
layoutGridMode
layoutGridType
rubyAlign
rubyOverhang
rubyPosition
textJustify
textKashidaSpace
unicodeBidi
User Contributed Comments