CalHTMLPane v2.0 Guide | Example Tag Usage |
2: Forms
Tag: LABEL
Synopsis:
The LABEL tag can contain HTML content, although it cannot contain other form components, framesets, or hyperlinks.The marginwidth and marginheight attributes determine the label's insets (the gap between the button's border and its content). The default marginwidth is 3 pixels, default marginheight 2 pixels.
Use the for attribute to transfer focus from a label to another form component (see HTML4.0 spec).
Use the border attribute to set the size of the label's border and the bordercolor attribute to set the border's color.
Use the dropshadow attribute to give the label a small shadow effect.
Note that to get the spacing and word-wrap you desire within the label it is often advisable to format content using tables.
Example:
<LABEL dropshadow border=1 bordercolor=black bgcolor=ddddee>
<TABLE cellspacing=2><TR><TD align=center>
<FONT size=-1 face=helvetica>Call now for<BR>information</FONT>
</TD><TD>
<IMG src="images/phone.gif">
</TD></TR></TABLE>
</LABEL>
Rendering:
Guide Index | JavaDoc | Previous | Next |