Supplement to
Colored Lines with Tables
variations below: height is the *center* panel which is the visual height of the line
1 height - 20% width
2 height - 30% width
3 height - 40% width
4 height - 50% width
5 height - 60% width
7 height - 70% width
8 height - 80% width
9 height - 90% width
10 height - 100% width
|
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH="100%"> The table tag sets no spacing between or within cells so they fit closely together <TR BGCOLOR="#CC99FF"> This first row is set to a light shade of the line color <TD><IMG SRC="empty.gif" WIDTH="1" HEIGHT="2" BORDER="0" ALT=""></TD> This is the table cell that actually gives shape to the color, with the height setting of the empty.gif defining the size. Joe's settings were a height of 1 for the top and bottom shadings, I have changed it to 2 for a little more depth. </TR> <TR BGCOLOR="#9966CC"> This second row is set to the main shade of the line color <TD><IMG SRC="empty.gif" WIDTH="1" HEIGHT="10" BORDER="0" ALT="===============================divider==============================="></TD> The table cell in this row used the height of empty.gif to set the primary visual height of the line. The ALT text is used to form a dividing line for text only browsers and voice readers. </TR> <TR BGCOLOR="#663399"> This third row is set to the dark shade of the line color <TD><IMG SRC="empty.gif" WIDTH="1" HEIGHT="1" BORDER="0" ALT=""></TD> This table cell sets the height of the shady side of the line. I like the look of a 1 here and a 2 in the row below as I used above, see the difference below. </TR> <TR BGCOLOR="#000000"> This fourth and final row is set to black to complete the shading <TD><IMG SRC="empty.gif" WIDTH="1" HEIGHT="2" BORDER="0" ALT=""></TD> The cell here gives the shadow height. Lines above used height=2, the one below uses height=1 </TR></TABLE> |
10 height - 100% width with shading alteration as discussed above
tutorial by MaMaT aka Holly Timm htmlhelp@comcast.net