ホームページ作成の基礎からご提供するホームページ作成Space | |
![]() |
|
![]() | |
|
|
CSS ボーダー(枠線)
◆ border: width style color (C1/e4/N4)◆ border-top: width style color (C1/e4/N4)◆ border-right: width style color (C1/e4/N4)◆ border-bottom: width style color (C1/e4/N4)◆ border-left: width style color (C1/e4/N4)border: は上下左右すべての、border-xxx: は上下左右それぞれのボーダー(枠線)の width, style, color を一度に指定します。
◆ border-width: top right bottom left (C1/e4/N4)◆ border-top-width: width (C1/e4/N4)◆ border-right-width: width (C1/e4/N4)◆ border-bottom-width: width (C1/e4/N4)◆ border-left-width: width (C1/e4/N4)border-width: は上下左右すべての、border-xxx-width: は上下左右それぞれののボーダー(枠線)の太さを、thin(細線)、medium(既定値:中太線)、thick(太線)のいずれか、または 1px(幅指定) などのような単位付きの数値で指定します。border-width: は引数を 1~4個指定可能で、省略時の解釈は margin と同様になります。 H1 { border-width: 1px; border-style: solid; }
◆ border-style: top right bottom left (C1/e4/N4)◆ border-top-style: style (C2/e4/N6)◆ border-right-style: style (C2/e4/N6)◆ border-bottom-style: style (C2/e4/N6)◆ border-left-style: style (C2/e4/N6)border-style: は上下左右すべての、border-xxx-style: は上下左右それぞれののボーダー(枠線)のスタイルを、none(線無し)、dotted(点線)、dashed(粗い点線)、solid(実線)、double(二重線)、groove(谷線)、ridge(山線)、inset(内線)、outset(外線)、inherit(継承)のいずれかで指定します。border-style: は引数を 1~4個指定可能で、省略時の解釈は marginと同様になります。 H1 { border-width: 1px; border-style: solid; }
◆ border-color: color (C1/e4/N4)◆ border-top-color: color (C2/e4/N6)◆ border-right-color: color (C2/e4/N6)◆ border-bottom-color: color (C2/e4/N6)◆ border-left-color: color (C2/e4/N6)border-color: は上下左右すべての、border-xxx-color: は上下左右それぞれののボーダー(枠線)の色を red のような色の名前か、#ff0000 のような RGB形式などで指定します。border-color: は引数を 1~4個指定可能で、省略時の解釈は marginと同様になります。 H1 { border-color: red; border-width: 1px; border-style: solid; }
|
![]() |
|
| 運営会社 | お問い合わせ | 広告掲載について | プライバシーポリシー | ご利用にあたって プロデュースはホームページ制作のTOSHO SEO対策のSEO Space COPYRIGHT©2008~ ホームページ作成Space ALLRIGHT RESERVED. 蒲田 焼肉 | 葛飾区 不動産 | 折りたたみ自転車 通販 | 中古マンション 東京 | 誕生日 サプライズ | 車 修理 | Rss space | 電子タバコ 通販 | | ||
![]() | ||