Jskad/extensions/calpa/Docs/html/guide-Misc-lines.html

120 lines
3.4 KiB
HTML
Raw Normal View History

2003-07-05 22:13:17 +00:00
<HTML>
<BODY bgcolor=ffffff>
<P>
<TABLE width=100% cellspacing=0 cellpadding=0>
<TR>
<TD>
<FONT size=-1><B>CalHTMLPane v2.0 Guide</B></FONT>
</TD>
<TD align=right>
<FONT size=-1><B>Example Tag Usage</B></FONT>
</TD>
</TR>
</TABLE>
<HR width=100% size=1 color=black>
<P>
<FONT size=+1><B>5: Misc</B></FONT>
<P>
<BLOCKQUOTE>
<P>
<B>Drawing horizontal lines</B><BR>
<P>
<BLOCKQUOTE>
<TABLE width=100% border align=center bgcolor=uicontrol cellpadding=10>
<TR>
<TD align=center>
The standard way to draw a horizontal line is to use the &lt;HR&gt; tag:
<P>
<table align=center bgcolor=ffffdd cellspacing=0 cellpadding=4 rules=none bordercolor=black frame=border>
<tr>
<td><FONT color=navy>
&lt;HR width=100%&gt;</FONT>
</td></tr></table>
<HR width=100%>
<P><BR>
In a CalHTMLPane this tag can also take a color argument:
<P><table bgcolor=ffffdd cellspacing=0 cellpadding=4 rules=none bordercolor=black frame=border>
<tr>
<td><FONT color=navy>
&lt;HR width=100% color=green size=1&gt;</FONT>
</td></tr></table>
<HR width=100% color=green size=1>
<P><BR>
The &lt;HR&gt; tag line-breaks and creates automatic spacing. However this is
not always desired, and in such cases the &lt;TABLE&gt; tag can be used to
create lines. We draw two such lines below to show that no space is created
between successive lines.
<P><table bgcolor=ffffdd cellspacing=0 cellpadding=4 rules=none bordercolor=black frame=border>
<tr>
<td><FONT color=navy>
&lt;TABLE width=100% bgcolor=blue cellspacing=0 border=0 cellpadding=1&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;<BR>
&lt;/TABLE&gt;<BR>
&lt;TABLE width=50% bgcolor=yellow cellspacing=0 border=0 cellpadding=1&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;<BR>
&lt;/TABLE&gt;
</FONT>
</td></tr></table>
<P>
<table width=100% border=0 cellspacing=0 cellpadding=1 bgcolor=blue>
<tr><td></td></tr>
</table>
<table width=50% border=0 cellspacing=0 cellpadding=1 bgcolor=yellow>
<tr><td></td></tr>
</table>
<P><BR>
Lines drawn using the &lt;TABLE&gt; tag can be inset:
<P><table bgcolor=ffffdd cellspacing=0 cellpadding=4 rules=none bordercolor=black frame=border>
<tr>
<td><FONT color=navy>
&lt;TABLE width=100% frame=none cellspacing=0 cellpadding=0 rules=all&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;<BR>
&lt;/TABLE&gt;<BR>
</FONT>
</td></tr></table>
<P>
<table width=100% frame=none cellspacing=0 cellpadding=0 rules=all>
<tr><td></td></tr>
</table>
<P><BR>
...or by reversing the cell border colors, a raised line can be drawn:
<P><table bgcolor=ffffdd cellspacing=0 cellpadding=4 rules=none bordercolor=black frame=border>
<tr>
<td><FONT color=navy>
&lt;TABLE width=100% frame=none cellspacing=0 cellpadding=0 rules=all&gt;<BR>
<code>&nbsp;&nbsp;</code>&lt;TR&gt;&lt;TD bordercolorlight=uishadow bordercolordark=uicontrol&gt;&lt;/TD&gt;&lt;/TR&gt;<BR>
&lt;/TABLE&gt;<BR>
</FONT>
</td></tr></table>
<P>
<table width=100% frame=none cellspacing=0 cellpadding=0 rules=all>
<tr><td bordercolorlight=uishadow bordercolordark=uihighlight></td></tr>
</table>
<BR>
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<TABLE align=center width=50%>
<TR>
<TD align=center>
<A href="../CalGuide.html">Guide Index</A> &nbsp;&#124;
<A href="../javadoc/overview-tree.html">&nbsp;JavaDoc</A> &nbsp;&#124;
<A href="guide-Misc-colornames.html">&nbsp;Previous</A> &nbsp;&#124;
<A href="guide-Misc-align.html">&nbsp;Next</A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>