プロパティ border-right-style

プロパティ border-right-style は、 要素の右ボーダーのスタイルを指定します。このプロパティの値は、 プロパティ border-style と同じ値を取ります。

構文

cssセレクター {
  border-right-style: 値;
}

例

右ボーダーを dashed タイプに設定してみましょう:

html<div id="elem"></div>
css#elem {
  border-right-style: dashed;
  border-right-width: 1px;
  border-right-color: black;
  
  background: #f9f9f9;
  width: 300px;
  height: 100px;
}

Результат:

関連項目

  • プロパティ border-right-color,
    右ボーダーの色を指定します
  • プロパティ border-right-width,
    右ボーダーの太さを指定します
  • プロパティ border-right,
    右側のボーダーを一括指定します
  • プロパティ border-width,
    全辺のボーダーの太さを指定します
  • プロパティ border-left,
    左ボーダーを一括指定します
  • プロパティ border-left-color,
    左ボーダーの色を指定します
  • プロパティ border-left-width,
    左ボーダーの太さを指定します
  • プロパティ border-left-style,
    左ボーダーのスタイルを指定します