Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 2.13 KB

File metadata and controls

79 lines (53 loc) · 2.13 KB
title slug
border-inline-start-color
Web/CSS/border-inline-start-color

{{CSSRef}}

border-inline-start-colorCSS のプロパティで、要素の論理的なインライン方向の先頭側の境界色を定義し、それが要素の書字方向やテキストの方向に応じて物理的な境界色に対応づけられます。これは {{cssxref("border-top-color")}}、{{cssxref("border-right-color")}}、{{cssxref("border-bottom-color")}}、{{cssxref("border-left-color")}} の何れかに対応し、どれに対応するかは {{cssxref("writing-mode")}}、{{cssxref("direction")}}、{{cssxref("text-orientation")}} で定義された値によって決まります。

{{EmbedInteractiveExample("pages/css/border-inline-start-color.html")}}

構文

border-inline-start-color: red;
border-inline-start-color: #ee4141;

/* グローバル値 */
border-inline-start-color: inherit;
border-inline-start-color: initial;
border-inline-start-color: revert;
border-inline-start-color: unset;

関連するプロパティとしては、 {{cssxref("border-block-start-color")}}、{{cssxref("border-block-end-color")}}、{{cssxref("border-inline-end-color")}} が要素の他の境界色を定義します。

  • <'color'>
    • : 境界の色です。 {{cssxref("color")}} を参照してください。

公式定義

{{CSSInfo}}

形式文法

{{csssyntax}}

HTML

<div>
  <p class="exampleText">Example text</p>
</div>

CSS

div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}

.exampleText {
  writing-mode: vertical-lr;
  border: 10px solid blue;
  border-inline-start-color: red;
}

{{EmbedLiveSample("Examples", 140, 140)}}

仕様書

{{Specifications}}

ブラウザーの互換性

{{Compat}}

関連情報

  • このプロパティは {{cssxref("border-top-color")}}、{{cssxref("border-right-color")}}、{{cssxref("border-bottom-color")}}、{{cssxref("border-left-color")}} のうちの 1 つに対応づけられます
  • {{cssxref("writing-mode")}}、{{cssxref("direction")}}、{{cssxref("text-orientation")}}