IBO Home IBO Ing. Büro Ottlik
 
Home Programme/Tools Alignment captions..
Home IBO Ottlik
© Ingenieurbüro Ottlik



Programme/Tools:

Programme/Tools
IT-Systeme
Tabellen Basics
Adjusting margins, borders
• Alignment captions, subtables
Table width
Color Tabelle
Bground Color
HTML Befehle
Spezial Zeichen
HTTP-Error Codes


THETABLESAMPLER 3

Diese Seite wird von uns privat zum Testen und zum Programmieren eigener Webseiten genutzt.
This is intended to be used only privat for testing and learning examples, how to use in own HTML-programing.


ALIGNMENT, CAPTIONS, AND SUBTABLES

DEMONSTRATION OF MULTIPLE LINES IN A TABLE

January February March
This is cell 1 Cell 2 Another cell,
cell 3
Cell 4 and now this
is cell 5
Cell 6

<TABLE BORDER>
	<TR>
		<TH>January</TH>
		<TH>February</TH>
		<TH>March</TH>
	</TR>
	<TR>
		<TD>This is cell 1</TD>
	    	<TD>Cell 2</TD>
	    	<TD>Another cell,<br> cell 3</TD>
	</TR>
	<TR>
		<TD>Cell 4</TD>
	    	<TD>and now this<br>is cell 5</TD>
	    	<TD>Cell 6</TD>
	</TR>
</TABLE>



ALIGN=LEFT|RIGHT|CENTER

can be applied to individual cells or whole ROWs
January February March
all aligned center Cell 2 Another cell,
cell 3
aligned right aligned to center default,
aligned left

<TABLE BORDER>
	<TR>
	    <TH>January</TH>
	    <TH>February</TH>
	    <TH>March</TH>
	</TR>
	<TR ALIGN=center>
	    <TD>all aligned center</TD>
	    <TD>Cell 2</TD>
	    <TD>Another cell,<br> cell 3</TD>
	</TR>
	<TR>
	    <TD ALIGN=right>aligned right</TD>
	    <TD ALIGN=center>aligned to center</TD>
	    <TD>default,<br>aligned left</TD>
	</TR>
</TABLE>


VALIGN=TOP|BOTTOM|MIDDLE

can be applied to individual cells or whole ROWs
January February March
all aligned to top and now this
is cell 2
Cell 3
aligned to the top aligned to the bottom default alignment,
center

<TABLE BORDER>
	<TR>
		<TH>January</TH>
		<TH>February</TH>
		<TH>March</TH>
	</TR>
	<TR VALIGN=top>
	    <TD>all aligned to top</TD>
	    <TD>and now this<br>is cell 2</TD>
	    <TD>Cell 3</TD>
	</TR>
	<TR>
	    <TD VALIGN=top>aligned to the top</TD>
	    <TD VALIGN=bottom>aligned to the bottom</TD>
	    <TD>default alignment,<br>center</TD>
	</TR>
</TABLE>

CAPTION=TOP|BOTTOM

A top CAPTION
January February March
This is cell 1 Cell 2 Another cell,
cell 3

<TABLE BORDER>
<CAPTION ALIGN=top>A top CAPTION</CAPTION>
	<TR>
		<TH>January</TH>
		<TH>February</TH>
		<TH>March</TH>
	</TR>
	<TR>
		<TD>This is cell 1</TD>
		<TD>Cell 2</TD>
		<TD>Another cell,<br> cell 3</TD>
	</TR>
</TABLE>

A bottom CAPTION
January February March
This is cell 1 Cell 2 Another cell,
cell 3

<TABLE BORDER>
<CAPTION ALIGN=bottom>A bottom CAPTION</CAPTION>
	<TR>
		<TH>January</TH>
		<TH>February</TH>
		<TH>March</TH>
	</TR>
	<TR>
		<TD>This is cell 1</TD>
		<TD>Cell 2</TD>
		<TD>Another cell,<br> cell 3</TD>
	</TR>
</TABLE>



NESTED TABLES: TABLE ABCD IS INSIDE TABLE 123456

1 2 3
A B
C D
4 5 6

<TABLE BORDER>
	<TR> <!-- ROW 1, TABLE 1 -->
		<TD>1</TD>
		<TD>2</TD>
		<TD>3
		<TABLE BORDER>
			<TR> <!-- ROW 1, TABLE 2 -->
				<TD>A</TD>
				<TD>B</TD>
			</TR>
			<TR> <!-- ROW 2, TABLE 2 -->
				<TD>C</TD>
				<TD>D</TD>
			</TR>
		</TABLE>
		</TD>
	</TR>
	<TR> <!-- ROW 2, TABLE 1 -->
		<TD>4</TD>
		<TD>5</TD>
		<TD>6</TD>
	</TR>
</TABLE>

Weiter mit:  Table width

© Author: Werner R. Ottlik | Stand: 04.09.2001
Ottlik@ibocon.de
© 1999 Netscape, All Rights Reserved. Legal & Privacy Notices
This site powered by Netscape SuiteSpot servers.