:


Original of this document is on Crossroad server
http://www.cross.ru/rusweb/articles/html/tables.htm









, . . .

HTML- <TABLE> </TABLE>. HTML- </TABLE> Netscape Navigator , , .
<TALBE> :

:
  • <CAPTION> </CAPTION>. CAPTION - ALIGN - . - top ( ) bottom ( )
  • <TR> </TR> - . :
    • ALIGN - ( LEFT, RIGHT, CENTER );
    • VALIGN - ( TOP, BOTTOM, MIDDLE );
    • BGCOLOR - .
  • <TD> </TD> - . :
    • ALIGN - ( . );
    • VALIGN - ( . );
    • COLSPAN, ROWSPAN - , ( . );
    • BGCOLOR - .


    :
    <TABLE BORDER>
    <TR>
    <TD>A</TD> <TD>B</TD> <TD>C</TD>
    </TR>
    <TR>
    <TD>D</TD> <TD>E</TD> <TD>F</TD>
    </TR>
    </TABLE>

    :
    A B C
    D E F


  • <TH> </TH> - . :
    • ALIGN - ( . );
    • VALIGN - ( . );
    • COLSPAN, ROWSPAN - , ( . );
    • WIDTH - ;
    • BGCOLOR - .

    :
    <TABLE BORDER>
    <TR>
    <TH> 1</TH> <TH> 2</TH> <TH> 3</TH>
    </TR>
    <TR>
    <TD>A</TD> <TD>B</TD> <TD>C</TD>
    </TR>
    <TR>
    <TD>D</TD> <TD>E</TD> <TD>F</TD>
    </TR>
    </TABLE>

    :
    1 2 3
    A B C
    D E F


    COLSPAN, ROWSPAN

    , , , . TH, TR TD. .

    , COLSPAN - . : COLSPAN=2 - 2 .

    ROWSPAN - ( , ) 2- .

    :
    <TABLE BORDER>
    <TR>
    <TD ALIGN=center ROWSPAN=2 COLSPAN=2>A</TD>
    <TD>1</TD>
    <TD>2</TD>
    </TR>
    <TR>
    <TD>3</TD>
    <TD>4</TD>
    </TR>
    <TR>
    <TD ALIGN=center ROWSPAN=2 COLSPAN=2>C</TD>
    <TD ALIGN=center ROWSPAN=2 COLSPAN=2>D</TD>
    </TR>
    <TR>
    </TR>
    </TABLE>

    :
    A 1 2
    3 4
    C D




    <TABLE> BORDER. . 0 10. 0 . , . :
    <TABLE ALIGN=center BORDER=5>
    <TR>
    <TD>
    <A HREF="http://www.cross.ru/index.htm"><IMG SRC="http://koi.cross.ru/menu/cross3small.gif"
    ALT="" ALIGN=left WIDTH=300 HEIGHT=55 BORDER=0></A>
    </TD>
    </TR>
    </TABLE>

    :


    WIDTH

    , - . , , , , WIDTH

    :
    <TABLE BORDER WIDTH="50%">
    <TR><TD WIDTH=80%> 50% . 80% </TD><TD>2</TD>
    </TR>
    <TR><TD>3</TD><TD>4</TD>
    </TR>
    </TABLE>


    :
    50% . 80% 2
    34




    . . , , . . , Internet Explorer , Netscape Navigator ( .. , ).



Original of this document is here



© ""

Last-modified: Thu, 27 Feb 1997 09:20:15 GMT
: