| 属性 |
機能・メモ |
値 |
- margin-top
- margin-bottom
- margin-left
- margin-right
|
要素のマージンを上下左右、個別に指定 |
- 数値+単位
- %は親要素に対する割合)
- auto
- 自動調整
|
| margin |
要素のマージンを上下左右まとめて指定 |
- padding-top
- padding-bottom
- padding-left
- padding-right
|
要素の内容と枠の間を上下左右、個別に指定 |
- 数値+単位
- %は親要素に対する割合
|
| padding |
要素の内容と枠の間を上下左右、まとめて指定 |
- border-top-width
- border-bottom-width
- border-left-width
- border-right-width
|
要素の枠の太さを上下左右、個別に指定 |
- thin
- 細い枠
- medium
- 中くらい枠
- thick
- 太い枠
- 数値+単位
|
| border-width |
要素の枠の太さを上下左右、まとめて指定 |
- border-top-style
- border-bottom-style
- border-left-style
- border-right-style
|
要素の枠のスタイルを上下左右、個別に指定 |
- none※
- 表示しない
- hidden
- 表示しない
- dotted
- 点滅
- dashed
- 破線
- solid
- 実線
- double
- 二重線
- groove
- 立体的にくぼんだ線
- ridge
- 立体的に隆起した線
- inset
- 要素ごと立体的にくぼむような線
- outset
- 要素ごと立体的に隆起したような線
|
| border-style |
要素の枠のスタイルを上下左右、まとめて指定 |
- border-top-color
- border-bottom-color
- border-left-color
- border-right-color
|
要素の枠の色を上下左右、個別に指定 |
- transparent
- 背景色と同じ色
- 色
|
| border-color |
要素の枠の色を上下左右、まとめて指定 |
- border-top
- border-bottom
- border-left
- border-right
|
要素の枠に関する値を方向別にまとめて指定 |
- border-widthの値
- border-styleの値
- border-colorの値
|
| border-top |
要素の枠に関する値を全方向まとめて指定 |
| width |
要素の内側の領域の幅を指定 |
- auto※
- 自動調整
- 数値+単位
- %は親要素に対する割合
|
| height |
要素の内側の領域の高さを指定 |
| min-width |
要素の内側の領域の幅の最小値を指定 |
- 数値+単位
- %は親要素に対する割合
|
| min-height |
要素の内側の領域の高さの最小値を指定 |
| max-width |
要素の内側の領域の幅の最大値を指定 |
- none※
- 制限しない
- 数値+単位
- %は親要素に対する割合
|
| max-height |
要素の内側の領域の高さの最大値を指定 |