
- CSS - Home
- CSS - Roadmap
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Types
- CSS - Measurement Units
- CSS - Selectors
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Border Block
- CSS - Border Inline
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursor
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS - Inline Block
- CSS - Dropdowns
- CSS - Visibility
- CSS - Overflow
- CSS - Clearfix
- CSS - Float
- CSS - Arrows
- CSS - Resize
- CSS - Quotes
- CSS - Order
- CSS - Position
- CSS - Hyphens
- CSS - Hover
- CSS - Display
- CSS - Focus
- CSS - Zoom
- CSS - Translate
- CSS - Height
- CSS - Hyphenate Character
- CSS - Width
- CSS - Opacity
- CSS - Z-Index
- CSS - Bottom
- CSS - Navbar
- CSS - Overlay
- CSS - Forms
- CSS - Align
- CSS - Icons
- CSS - Image Gallery
- CSS - Comments
- CSS - Loaders
- CSS - Attr Selectors
- CSS - Combinators
- CSS - Root
- CSS - Box Model
- CSS - Counters
- CSS - Clip
- CSS - Writing Mode
- CSS - Unicode-bidi
- CSS - min-content
- CSS - All
- CSS - Inset
- CSS - Isolation
- CSS - Overscroll
- CSS - Justify Items
- CSS - Justify Self
- CSS - Tab Size
- CSS - Pointer Events
- CSS - Place Content
- CSS - Place Items
- CSS - Place Self
- CSS - Max Block Size
- CSS - Min Block Size
- CSS - Mix Blend Mode
- CSS - Max Inline Size
- CSS - Min Inline Size
- CSS - Offset
- CSS - Accent Color
- CSS - User Select
- CSS - Cascading
- CSS - Universal Selectors
- CSS - ID Selectors
- CSS - Group Selectors
- CSS - Class Selectors
- CSS - Child Selectors
- CSS - Element Selectors
- CSS - Descendant Selectors
- CSS - General Sibling Selectors
- CSS - Adjacent Sibling Selectors
- CSS Advanced
- CSS - Grid
- CSS - Grid Layout
- CSS - Flexbox
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Paged Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS - Image Sprites
- CSS - Important
- CSS - Data Types
- CSS3 Advanced Features
- CSS - Rounded Corner
- CSS - Border Images
- CSS - Multi Background
- CSS - Color
- CSS - Gradients
- CSS - Box Shadow
- CSS - Box Decoration Break
- CSS - Caret Color
- CSS - Text Shadow
- CSS - Text
- CSS - 2d transform
- CSS - 3d transform
- CSS - Transition
- CSS - Animation
- CSS - Multi columns
- CSS - Box Sizing
- CSS - Tooltips
- CSS - Buttons
- CSS - Pagination
- CSS - Variables
- CSS - Media Queries
- CSS - Functions
- CSS - Math Functions
- CSS - Masking
- CSS - Shapes
- CSS - Style Images
- CSS - Specificity
- CSS - Custom Properties
- CSS Responsive
- CSS RWD - Introduction
- CSS RWD - Viewport
- CSS RWD - Grid View
- CSS RWD - Media Queries
- CSS RWD - Images
- CSS RWD - Videos
- CSS RWD - Frameworks
- CSS References
- CSS Interview Questions
- CSS Online Quiz
- CSS Online Test
- CSS Mock Test
- CSS - Quick Guide
- CSS - Cheatsheet
- CSS - Properties References
- CSS - Functions References
- CSS - Color References
- CSS - Web Browser References
- CSS - Web Safe Fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
CSS - border-block-start-color Property
CSS border-block-start-color property determines the logical block-start border color and is converted into a physical border color depending on the writing mode, directionality, and text orientation of the element.
Syntax
border-block-start-color: color | transparent | initial | inherit;
Property Values
Value | Description |
---|---|
color | It specifies the color of border. Different color formats can be used (names,rgb values,hex values,hsl values etc.). Default color is the current color of the element. |
transparent | It specifies that the border must be transparent. |
initial | This sets the property to its default value. |
inherit | This inherits the property from the parent element. |
Examples of CSS Border Block Start Color Property
The following examples explain the border-block-start-color property with different values.
Defining Color Name to Border Block Start Color
The color of the border-block-start can be set using color names. In the following example, orange color has been used to set the block-border-start-color.
Example
<!DOCTYPE html> <html> <head> <style> #named-color { border: 7px solid black; border-block-start-color: orange; padding: 15px; } </style> </head> <body> <div> <h2> CSS border-block-start-color property </h2> <p id="named-color"> This is a bordered element with a specific border-block-start-color with named color. </p> </div> </body> </html>
Defining Hexadecimal Border Block Start Color Value
The color of the border-block-start can be set using hexadecimal values too. In the following example, hex value #ccff66 has been used to set the block-border-color.
Example
<!DOCTYPE html> <html> <head> <style> #hexa { border: 7px solid black; border-block-start-color: #ccff66; padding: 15px; } </style> </head> <body> <div> <h2> CSS border-block-start-color property </h2> <p id="hexa"> This is a bordered element with a specific border-block-start-color using hex value. </p> </div> </body> </html>
Defining RGB Border Block Start Color Value
The color of the border-block-start can be set using rgb values too. In the following example, rgb value (255, 153, 102) has been used to set the block-border-start-color.
Example
<!DOCTYPE html> <html> <head> <style> #rgb { border: 7px solid black; border-block-start-color: rgb(255, 153, 102); padding: 15px; } </style> </head> <body> <div> <h2> CSS border-block-start-color property </h2> <p id="rgb"> This is a bordered element with a specific border-block-start-color using rgb value. </p> </div> </body> </html>
Defining HSL Border Block Start Color Value
The color of the border-block-start can be set using hsl values too. In the following example, hsl value (270, 100%, 40%) has been used to set the block-border-color.
Example
<!DOCTYPE html> <html> <head> <style> #hsl { border: 7px solid black; border-block-start-color: hsl(270, 100%, 40%); padding: 15px; } </style> </head> <body> <div> <h2> CSS border-block-start-color property </h2> <p id="hsl"> This is a bordered element with a specific border-block-start-color using hsl value. </p> </div> </body> </html>
Defining Transparent Border Block Start Color Value
To set a transparent border-block-start color, we use the transparent value. In the following example, transparent value has been used to set the block-border-start-color. The top border is not visible.
Example
<!DOCTYPE html> <html> <head> <style> #transparent { border: 7px solid black; border-block-start-color: transparent; padding: 15px; } </style> </head> <body> <div> <h2> CSS border-block-start-color property </h2> <p id="transparent"> This is a bordered element with a specific border-block-start-color using transparent value. </p> </div> </body> </html>
Defining Border Block Start Color with Writing Mode
The border-block-start-color property is influenced by the writing mode, which determines the border direction. In horizontal mode, it colors the top and bottom borders, while in vertical mode, it colors the left and right borders, as shown in the following example.
Example
<!DOCTYPE html> <html> <head> <style> #horizontal { border: 7px solid black; writing-mode: horizontal-tb; border-block-start-color: red; padding: 20px; } #vertical { border: 7px solid black; writing-mode: vertical-rl; border-block-start-color: red; padding: 20px; } </style> </head> <body> <div> <h2> CSS border-block-start-color property </h2> <p id="horizontal"> This shows the horizontal coloring of the border-block-start-color property. </p> <p id="vertical"> This shows the vertical coloring of the border-block-start-color property. </p> </div> </body> </html>
Supported Browsers
Property | ![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|---|
border-block-start-color | 69.0 | 79.0 | 41.0 | 12.1 | 56.0 |