- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Selectors
- CSS - Inclusion
- CSS - Measurement Units
- 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 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 Tutorial
- CSS3 - Tutorial
- 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 - Questions and Answers
- CSS - Quick Guide
- CSS - 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-end-width Property
The element's logical block-end border width is set by the border-block-end-width CSS property, which adjusts to the physical border width according to the writing mode, directionality, and text orientation of the element.
Its value, depending on the writing-mode, direction and text-orientation given, is interpreted as border-right-width, border-bottom-width, or border-left-width
The remaining border widths of the element are defined by the related attributes border-block-start-width, border-inline-start-width, and border-inline-end-width.
Possible value
<'border-width'> - The width of the border.
Syntax
border-block-end-width = <line-width> <line-width> = <length [0,∞]> | thin | medium | thick
Applies to
All the HTML elements.
CSS border-block-end-width - length Value
The following example demonstrates the usage of border-block-end-width property.
<html> <head> <style> body { font-family: 'Arial', sans-serif; margin: 50px; padding: 50px; background-color: #f0f0f0; } .new-container { background-color: #d6e39f; width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; border-radius: 15px; box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8); } .custom-border { border: 4px dashed #637804; border-block-end-style: solid; border-block-end-width: 10px; padding: 15px; margin: 10px; font-size: 20px; font-weight: bold; color: #333; } </style> </head> <body> <div class="new-container"> <p class="custom-border">A border-block-end-width property example with length value.</p> </div> </body> </html>
CSS border-block-end-width - thin value.
The following example demonstrates the usage of border-block-end-width property along with thin width value.
<html> <head> <style> body { font-family: 'Arial', sans-serif; margin: 50px; padding: 50px; background-color: #f0f0f0; } .new-container { background-color: #f0ccc5; width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; border-radius: 15px; box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8); } .custom-border { border: 4px double #e6350e; border-block-end-style: solid; border-block-end-width: thin; padding: 15px; margin: 10px; font-size: 22px; font-weight: bold; color: #333; } </style> </head> <body> <div class="new-container"> <p class="custom-border">A border-block-end-width example with thin width value.</p> </div> </body> </html>
CSS border-block-end-width - medium value
The following example demonstrates the usage of border-block-end-width property along with medium width value.
<html> <head> <style> body { font-family: 'Arial', sans-serif; margin: 50px; padding: 50px; background-color: #f0f0f0; } .new-container { background-color: #b8e2f5; width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; border-radius: 15px; box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8); } .custom-border { border: 8px double #02a0e3; border-block-end-style: solid; border-block-end-width: medium; padding: 15px; margin: 10px; font-size: 22px; font-weight: bold; color: #333; } </style> </head> <body> <div class="new-container"> <p class="custom-border">A border-block-end-width example with medium width value.</p> </div> </body> </html>
CSS border-block-end-width - thick value
The following example demonstrates the usage of border-block-end-width property along with thick width value.
<html> <head> <style> body { font-family: 'Arial', sans-serif; margin: 50px; padding: 50px; background-color: #f0f0f0; } .new-container { background-color: #b8e2f5; width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; border-radius: 15px; box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8); } .custom-border { border-block-end-style: solid; border-block-end-width: thick; border-block-end-color: #02a0e3; padding: 15px; margin: 10px; font-size: 22px; font-weight: bold; color: #333; } </style> </head> <body> <div class="new-container"> <p class="custom-border">A border-block-end-width example with thick width value.</p> </div> </body> </html>
CSS border-block-end-width - Writing Mode
The following example demonstrates the usage of border-block-end-width property along with length value and vertical writing mode.
<html> <head> <style> body { font-family: 'Arial', sans-serif; margin: 50px; padding: 50px; background-color: #f0f0f0; } .vertical-container { background-color: #eaf5d7; width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; border-radius: 15px; box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8); } .vertical-border { writing-mode: vertical-rl; border: 3px solid #854905; border-block-end-style: dotted; border-block-end-width: 6px; padding: 12px; margin: 10px; font-size: 20px; font-weight: bold; color: #333; } </style> </head> <body> <div class="vertical-container"> <p class="vertical-border">A border-block-end-width example with vertical writing mode.</p> </div> </body> </html>
To Continue Learning Please Login
Login with Google