- 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-start-end-radius Property
CSS border-start-end-radius property defines the radius of the corner between the block-start and inline-end sides of an element.
This property is a logical border radius, which means that its value depends on the element's writing mode, direction, and text orientation.
Possible Values
<length>: Size of circle radius is denoted, using length values. Negative values are not valid.
<percentage>: Size of circle radius is denoted, using percentage values.
Horizontal axis percentage is referred to the width of the box.
Vertical axis percentage is referred to the height of the box.
Negative values are not valid.
Applies to
All the HTML elements, except for table and inline-table elements with border-collapse set to collapse. It also applies to ::first-letter.
DOM Syntax
object.style.borderStartEndRadius = "length";
CSS border-start-end-radius - <length> Value
Here is an example of how to create block-start and inline-end rounded corner using length value −
<html> <head> <style> .rounded-box { width: 150px; height: 150px; background-color: pink; border: 3px solid green; margin: 10px; border-start-end-radius: 60px 60px; } </style> </head> <body> <div class="rounded-box"> block-start and inline-end rounded corner. </div> </body> </html>
CSS border-start-end-radius - <percentage> Value
Here is an example of how to create block-start and inline-end rounded corner using percentage value −
<html> <head> <style> .rounded-box { width: 150px; height: 150px; background-color: pink; border: 3px solid green; margin: 10px; border-start-end-radius: 30% 30%; } </style> </head> <body> <div class="rounded-box"> block-start and inline-end rounded corner. </div> </body> </html>
CSS border-start-end-radius - With Animation
Here is an example of how to create block-start and inline-end rounded corner with an animation −
<html> <head> <style> .rounded-border { background-color: pink; border: 3px solid green; background-size: 100% 100%; width: 200px; height: 200px; animation: animatedRadius 5s infinite; } @keyframes animatedRadius { 50% { border-start-end-radius: 100px; } } </style> </head> <body> <div class="rounded-border"> block-start and inline-end rounded corner with animation. </div> </body> </html>
CSS border-start-end-radius - Direction RTL
The following example demonstrates how to use the border-start-end-radius and direction: rtl property to create a rounded block-start and inline-end corner of an element in a right-to-left direction −
<html> <head> <style> .rounded-box { width: 150px; height: 150px; background-color: pink; border: 3px solid green; margin: 10px; border-start-end-radius: 120px 50px; direction: rtl } </style> </head> <body> <div class="rounded-box"> block-start and inline-end rounded corner using direction: rtl. </div> </body> </html>
CSS border-start-end-radius - Writing-mode
We can use the border-start-end-radius property with writing-mode: vertical-lr, it arranges text vertically from top to bottom and left to right. Similarly, with writing-mode: vertical-rl, it arranges text vertically from top to bottom and right to left.
Here is an example −
<html> <head> <style> .rounded-box { width: 150px; height: 150px; background-color: pink; border: 3px solid green; margin: 10px; } .top-left-lr { border-start-end-radius: 30%; writing-mode: vertical-lr; } .top-left-rl { border-start-end-radius: 30%; writing-mode: vertical-rl; } </style> </head> <body> <div class="rounded-box top-left-lr"> block-start and inline-end rounded corner using vertical-lr. </div> <div class="rounded-box top-left-rl"> block-start and inline-end rounded corner using vertical-rl. </div> </body> </html>
CSS border-start-end-radius - Vertical Text
The following example demonstrates how to use the border-start-end-radius property to create a rounded block-start and inline-end corner with vertical text −
<html> <head> <style> .rounded-box { width: 150px; height: 150px; background-color: pink; border: 3px solid green; border-start-end-radius: 40%; } .text-box { writing-mode: vertical-rl; background-color: yellow; border: 3px solid blue; border-start-end-radius: 20%; padding: 5px; } </style> </head> <body> <div class="rounded-box"> <p class="text-box">block-start and inline-end rounded corner.</p> </div> </body> </html>
CSS border-start-end-radius - Related Properties
Following is the list of CSS properties related to border-start-end-radius:
property | value |
---|---|
writing-mode | Sets the writing direction of an element either vertically and horizontally. |
direction | Sets the direction of text |
text-orientation | Sets the orientation of the characters in a line. |
To Continue Learning Please Login
Login with Google