|
hitmill.com
![]() |
|
|
First I would like to say that the FRAME attribute of the <TABLE> tag is in no way connected to HTML Frames. That is an altogether different topic. This FRAME attribute has to do with making partial borders around tables. First I will show you a table, then I will share the code, so you know to do it. (Some browsers will not yet support the frame attribute of the table tag.) FRAME=HSIDESHSIDES means that the top and bottom horizontal borders will appear:
<TABLE FRAME="HSIDES" BORDER="4" CELLSPACING="4" Note: When you code FRAME=HSIDES you need to still specify the BORDER width for the outer part and if you want a second fine line with it, you have to code CELLSPACING. The effect will not show up well on certain backgrounds unless you also code a BORDERCOLOR for your partial frame. FRAME=VSIDESFRAME=VSIDES will render vertical frames on the left and right edges of the table:
<table frame="vsides" border="4" cellspacing="4" bgcolor="cornsilk" bordercolor="green" cellpadding="10"> See what happens now if we add more than one cell to a table that has vertical borders:
The vertical borders lose their effectiveness, the table has become sloppy and looks like "something is missing". Adding a subtle background color would help to restore some cohesiveness to the table. Another thing to keep in mind is that not all browsers support the FRAME attribute of the TABLE tag. Back to Table Attributes List |