4.13.8 HTMLパーツで使用できるCSSプロパティ一覧

各要素のstyle属性でスタイルを定義する場合,および外部CSSファイルを作成する場合に使用できるCSSプロパティを次に示します。ここに示していないCSSプロパティを使用したときの動作は保証されません。

表4-4 使用できるCSSプロパティ

項番分類プロパティ補足説明
1color
2背景background次のプロパティを設定できます。まとめて定義できます。
  • background-color
  • background-image
  • background-repeat
  • background-attachment
  • background-position
3テキストtext-align
4フォントfont次のプロパティを設定できます。まとめて定義できます。
  • font-family
  • font-style
  • font-weight
  • font-size
5視覚フォーマットモデルwidth
6min-width
7max-width
8height
9min-height
10max-height
11line-height
12vertical-align
13視覚効果overflow
14ボックス・モデルmargin次のプロパティを設定できます。まとめて定義できます。
  • margin-top
  • margin-right
  • margin-bottom
  • margin-left
15padding次のプロパティを設定できます。まとめて定義できます。
  • padding-top
  • padding-right
  • padding-bottom
  • padding-left
16border-width次のプロパティを設定できます。まとめて定義できます。
  • border-top-width
  • border-right-width
  • border-bottom-width
  • border-left-width
17border-color次のプロパティを設定できます。まとめて定義できます。
  • border-top-color
  • border-right-color
  • border-bottom-color
  • border-left-color
18border-style次のプロパティを設定できます。まとめて定義できます。
  • border-top-style
  • border-right-style
  • border-bottom-style
  • border-left-style
19border次のプロパティを設定できます。まとめて定義できます。
  • border-top
  • border-right
  • border-bottom
  • border-left
20caption-side
21table-layout
22border-collapse
23border-spacing
24empty-cells
(凡例)
-:補足説明はありません。