valign属性

 
  
ホーム > HTML Note > col要素 > valign属性
H4- ie4-

valign属性 valign="(top|middle|bottom|baseline)" 内容の垂直表示位置

H4- ie4- 

top 上に表示

Hello! Hello! Hello! Hello!

middle 中央に表示 (初期値)

Hello! Hello! Hello! Hello!

bottom 下に表示

Hello! Hello! Hello! Hello!

baseline 1行目のベースラインに揃える

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.
<table border="1" width="100%">
<col span="4" valign="baseline">
<tr>
  <td width="25%">
  Tobacco is the second major cause of death in the world.
  <td width="25%">
  <span style="font-size:large;">It is currently responsible for the death of one in ten adults worldwide (about 5 million deaths each year).</span>
  <td width="25%">
  <span style="font-size:x-large;">If current smoking patterns continue, it will cause some 10 million deaths each year by 2020.</span>
  <td width="25%">
  <span style="font-size:xx-large;">Half the people that smoke today -that is about 650 million people- will eventually be killed by tobacco.</span>
</table>
 
関連要素: col
トップページ HTML Note ページトップ
 2006/07/25発行 2008/01/01更新