tailieunhanh - Tự học HTML và CSS trong 1 giờ - part 32

Tham khảo tài liệu 'tự học html và css trong 1 giờ - part 32', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 286 lesson 10 Building Tables tr th Bottom th td align left valign bottom img src alt td td align center valign bottom img src alt td td align right valign bottom img src alt td tr table body html Output FIGURE A matrix of cell alignment settings. Caption Alignment The optional align attribute of the caption tag determines the alignment of the caption. Depending on which browser you re using however you have different choices for what align means. There are four values for the align attribute of the caption tag top bottom left and right. By default the caption is placed at the top of the table align top . You can use the align bottom attribute to the caption if you want to put the caption at the bottom of the table like the following table caption align bottom Torque Limits for Various Fruits caption Similarly left places the caption to the left of the table and right places it to the right. In Internet Explorer however captions are handled slightly differently. The top and bottom values are treated in the standard fashion but left and right are different. Rather than placing the caption to the side of the table specified they align the caption horizontally on the top or bottom of the table and the placement of the caption is then left to the Download from Spanning Multiple Rows or Columns 287 nonstandard valign attribute. So in Internet Explorer you could place a caption at the bottom of the table aligned with the right edge like this table caption valign bottom align right Torque Limits for Various Fruits cap-tion To create the same effect in all current browsers you can use a combination of HTML and CSS. To place the caption at the bottom right of the table you would use the align attribute and text-align property as follows caption align bottom style text-align right This is a caption caption In general unless you have a very short table you should leave the caption in its default position centered at the top of