Div
Div
- Demonstration: N/A
- Java API: org.zkoss.zul.Div
- JavaScript API:
zul.wgt.Div
Employment/Purpose
Div
is one of the most lightweight containers to group child
components for, say, assigning CSS or making a more sophisticated
layout. It renders an HTML DIV tag in a browser. Div is displayed as a
block that the following sibling won’t be displayed in the same vertical
position, as if there is a line break before and after it.
align
To change the alignment of div, you can use CSS to achieve e.g.
style="text-align:right"
Removed Since 10.0
<div align="left" width="300px">
<doublebox />
</div>
<div align="right" width="300px">
<doublebox />
</div>
Supported Events
- Inherited Supported Events: XulElement
Supported Children
*ALL