Text Links Ads : Marketing Tips Store : Search Engine Optimization Strategies
WebPosition Gold Pro : Domain Registration Bank : Optilink Software : GoDefy
Mike's Marketing Tools : Mike's Ecommerce Software : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML Codes > Tables > <CAPTION ...>

Attribute for <CAPTION ...>
ALIGN =TOP |BOTTOM |LEFT |RIGHT

ALIGN sets the alignment of the table caption. ALIGN doesn't work like other alignment attributes. There are only four accepable values. ALIGN=TOP puts the caption n top of the table, and ALIGN=BOTTOM put it below. ALIGN=LEFT puts the caption on top to the left, and ALIGN=RIGHT puts it on top to the right.

this code produces this
<CAPTION ALIGN=TOP>
Favorite Foods
PersonFood
Ping French Toast with Powdered Sugar
AndyTofu with Sprouts
<CAPTION ALIGN=BOTTOM>
Favorite Foods
PersonFood
Ping French Toast with Powdered Sugar
AndyTofu with Sprouts
<CAPTION ALIGN=LEFT>
Favorite Foods
PersonFood
Ping French Toast with Powdered Sugar
AndyTofu with Sprouts
<CAPTION ALIGN=RIGHT>
Favorite Foods
PersonFood
Ping French Toast with Powdered Sugar
AndyTofu with Sprouts

You may have noticed that there are no options for putting the caption below and to the right or below and to the left. MSIE recognizes a VALIGN attribute but not Netscape. If you want to put the caption on the bottom to the right or left you can use styles:

this code produces this
<CAPTION 
ALIGN=BOTTOM STYLE="text-align:right">
Favorite Foods
PersonFood
Ping French Toast with Powdered Sugar
AndyTofu with Sprouts
<CAPTION 
ALIGN=BOTTOM STYLE="text-align:left">
Favorite Foods
PersonFood
Ping French Toast with Powdered Sugar
AndyTofu with Sprouts

Technically, ALIGN is deprecated by W3C, though they don't give any explanation for why it is deprecated.

<CAPTION VALIGN="..."> >>>

Copyright © 2002-8 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com