align属性

 
  
ホーム > HTML Note > thead|tfoot|tbody > align属性
H4- ie4- N6-

align属性 align="(left|center|right|justify|char)" 内容の水平表示位置

H4- ie4- N6- 

left 左に表示 (初期値)

Hello! Hello! Hello! Hello!
Hello! Hello! Hello! Hello!
Hello! Hello! Hello! Hello!

center 中央に表示

Hello! Hello! Hello! Hello!
Hello! Hello! Hello! Hello!
Hello! Hello! Hello! Hello!

right 右に表示

Hello! Hello! Hello! Hello!
Hello! Hello! Hello! Hello!
Hello! Hello! Hello! Hello!

justify 両端揃え (複数行テキスト) (H4- N6-)

Tobacco is the second major cause of death in the world. It is currently responsible for the death of one in ten adults worldwide (about 5 million deaths each year). If current smoking patterns continue, it will cause some 10 million deaths each year by 2020. Half the people that smoke today -that is about 650 million people- will eventually be killed by tobacco.
Tobacco is the second major cause of death in the world. It is currently responsible for the death of one in ten adults worldwide (about 5 million deaths each year). If current smoking patterns continue, it will cause some 10 million deaths each year by 2020. Half the people that smoke today -that is about 650 million people- will eventually be killed by tobacco.
Tobacco is the second major cause of death in the world. It is currently responsible for the death of one in ten adults worldwide (about 5 million deaths each year). If current smoking patterns continue, it will cause some 10 million deaths each year by 2020. Half the people that smoke today -that is about 650 million people- will eventually be killed by tobacco.

char 指定文字で揃える (H4-)

1.4142135623730950488016887242097
10.0
1.7320508075688772935274463415059
100.0
2.2360679774997896964091736687313
10000.0
<table border="1>
<thead align="char" char=".">
  <tr><td>1.4142135623730950488016887242097
  <tr><td>10.0
<tfoot align="char" char=".">
  <tr><td>1.7320508075688772935274463415059
  <tr><td>100.0
<tbody align="char" char=".">
  <tr><td>2.2360679774997896964091736687313
  <tr><td>10000.0
</table>
 
関連要素: thead|tfoot|tbody
トップページ HTML Note ページトップ
 2006/07/25発行 2008/01/01更新