![]() | ||||||||||||||||||||||||||||||||||||||||
![]() Online Companion Home Documents Tutorial 1 Tutorial 2 Tutorial 3 Tutorial 4 Tutorial 5 Gallery Software Data Files Reference HTML Tags | Designing a Web Page | |||||||||||||||||||||||||||||||||||||||
Using a Background Image |
| Internet Explorer version 3.0 and above supports an additional property
for the <TABLE> tag, the BACKGROUND property. If you're using IE3.0
or higher, you might consider using the BACKGROUND property in your Web tables.
For example, the following HTML code:
<TABLE BORDER BORDER=2 CELLSPACING=2 CELLPADDING=5 BACKGROUND="Aqua.jpg"> Creates the following table:
Note that the background image will appear only if you're using IE3.0 or higher.
The syntax for the <COL> tag is as follows: <COL ALIGN=Alignment SPAN=Value VALIGN=Valignment> where Alignment is the horizontal alignment of text in the column(s) and can be either CENTER, JUSTIFY, LEFT or RIGHT, Value is the number of columns affected by the <COL> tag, and Valignment is the vertical alignment of text in the column(s) and can be either TOP, MIDDLE or BOTTOM. The <COLGROUP> tag can as a container for <COL> tags, or you can use it on individual columns. The syntax for the <COL> tag is similar to the <COL> tag, i.e. <COLGROUP ALIGN=Alignment SPAN=Value VALIGN=Valignment> Here is an example of the <COLGROUP> tag used to align the text in the three columns of the table to the LEFT, CENTER and RIGHT respectively. The HTML code is as follows: <TABLE BORDER WIDTH=250> which results in the following table (alignment is only visible in IE3.0 or higher.)
If you wish to center the last two columns of these table, you can do so using the <COL> tag along with the SPAN property. Here is some sample HTML code:
<TABLE BORDER WIDTH=250> which results in the following table:
As with all new HTML specifications, you should be made aware that the tables created with the <COL> and <COLGROUP> tags will not appear the same in browsers that don't support those tags. At present, Internet Explorer 4.0 and above supports these tags. Netscape does not. You can learn more about the <COLGROUP> and <COL> tags at Microsoft's HTML Table Reference or Microsoft's HTML General Tag Reference. | ||||||||||||||||||||||||||||||||
| Website design by SKDesigns. |