CalHTMLPane v2.0 Guide | Example Tag Usage

5: Misc

> Drawing horizontal lines

> > The standard way to draw a horizontal line is to use the <HR> tag:

> > <HR width=100%>

> > In a CalHTMLPane this tag can also take a color argument:

> > <HR width=100% color=green size=1>

> > The <HR> tag line-breaks and creates automatic spacing. However this is not always desired, and in such cases the <TABLE> tag can be used to create lines. We draw two such lines below to show that no space is created between successive lines.

> > <TABLE width=100% bgcolor=blue cellspacing=0 border=0 cellpadding=1> `` <TR><TD></TD></TR> </TABLE> <TABLE width=50% bgcolor=yellow cellspacing=0 border=0 cellpadding=1> `` <TR><TD></TD></TR> </TABLE>

> > Lines drawn using the <TABLE> tag can be inset:

> > <TABLE width=100% frame=none cellspacing=0 cellpadding=0 rules=all> `` <TR><TD></TD></TR> </TABLE>

> > ...or by reversing the cell border colors, a raised line can be drawn:

> > <TABLE width=100% frame=none cellspacing=0 cellpadding=0 rules=all> `` <TR><TD bordercolorlight=uishadow bordercolordark=uicontrol></TD></TR> </TABLE>

Guide Index | JavaDoc | Previous | Next