You're now here » Home » div
div
Define a text container that can have a border, a background, a position and a size.<br> This element can be used anywhere within a body element, except inside a multicell element.
Attribute Values
| value | Description |
|---|---|
| left | the distance between the container and the left border of the page. By default, use the current position in the document. |
| top | the distance between the container and the top border of the page. By default, use the current position in the document. |
| width | the width of the container. By default, use the remainder of the space on the page. |
| height | the height of the container. By default, use the remainder of the space on the page. |
| color | indicates a border is needed and specify the color. Colors are encoded as 6 digits hexadecimal numbers such as "FC80C0" or "#A03E8F" |
| fillcolor | specify a background color. By default, the background is transparent. |
| border | indicates the thickness of the border. |
Example:
<div top=30% left=30% width=40% height=40% color=#00FF00 border=2mm>
This is <b>right</b> in the <u>middle</u> of the page.<br>
Neat.
</div>
See also: multicell