DIV
Jump to navigation
Jump to search
Description
- The Run BASIC Div statement allows you to format output using styles. To learn more about styles, see CSSID and Styling with CSS.
Syntax
- DIV tag - Begin an HTML div specifying with tag
Hints
- 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:
CSSID #myTab, " { Background-Color: red } "
- When the tag is called with the Div statement, the # is omitted.
Div myTab 'code here End Div
Example
- 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.
CSSID #colorful, " { Background-Color:orange; Width: 100px; Height: 300px } "
DIV colorful
print "Text displayed inside DIV."
END DIV
print " ":print "Out of DIV."
Useful Procedures
' Place a useful function or sub using this keyword here