border-top-width

Home>CSS>プロパティリファレンス>border-top-width

この情報はお役に立ちましたか?よろしければ皆様にもお知らせください。

  このエントリーをはてなブックマークに追加 mixiチェック  

border-top-widthプロパティの役割

border-top-widthプロパティは、ボックスの上の枠線の太さを指定します。

border-top-widthプロパティに設定できる値

auto ボックスの高さに合わせて自動的に設定。
inherit 上位要素に指定された値を反映。
数値 整数値で太さを指定。数値+単位で示す。
ボックスの高さに対する割合を指定。

初期値はゼロです。

border-top-widthプロパティの使い方

<table cellpadding="5">
<tr><td style="border-top-width:auto;border-top-color:#FF0000;border-top-style:solid;">&nbsp;</td></tr>
<tr><td style="border-top-width:inherit;border-top-color:#FF0000;border-top-style:solid;">&nbsp;</td></tr>
<tr><td style="border-top-width:5px;border-top-color:#FF0000;border-top-style:solid;">&nbsp;</td></tr>
<tr><td style="border-top-width:thin;border-top-color:#FF0000;border-top-style:solid;">&nbsp;</td></tr>
<tr><td style="border-top-width:medium;border-top-color:#FF0000;border-top-style:solid;">&nbsp;</td></tr>
<tr><td style="border-top-width:thick;border-top-color:#FF0000;border-top-style:solid;">&nbsp;</td></tr>
</table>

 
 
 
 
 
 

関連リンク

よく読まれている記事

UpDate:2010-7-18