Div

Div
The Run BASIC **Div** statement allows you to format output using styles. To learn more about styles, see CSSID and Styling with CSS.

The syntax:

DIV tag //- Begin an HTML div specifying with tag//


 * Div** begins a block of code and the **Div** block must be closed with **End Div**. All code between **Div** and **End Div** will be rendered according to the style in the **CSSID** tag name specified.

The tag must be created with the **CSSID** statement. The name of the tag in the **CSSID** statement begins with the # character.

Example CSSID statement: code CSSID #myTab, " { Background-Color: red } " code When the tag is called with the **Div** statement, the # is omitted. code Div myTab 'code here End Div code

Here is a small demo that creates a CSSID tag. It creates a **Div** block using that tag, prints some text, then closes the **Div** with **End Div**. It then prints some text outside the **Div** block.

code format="vbnet" CSSID #colorful, " { Background-Color:orange; Width: 100px; Height: 300px } "

DIV colorful print "Text displayed inside DIV." END DIV

print " ":print "Out of DIV." code