CSS Portal

CSS border-top-left-radius Property

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The border-top-left-radius property controls the curvature applied specifically to the element’s top‑left corner, changing that corner from a sharp 90° angle to a rounded curve. It affects how the border edge and the element’s background are rendered in that corner, so setting a curvature here only changes the single corner rather than all four. The visual result can be a simple circular arc or an elliptical shape depending on how the horizontal and vertical curvature are defined, allowing subtle variations in the corner’s appearance.

When the corner is rounded, painting and clipping behavior changes: the border stroke follows the curved outline instead of a square corner, and the element’s background is painted to respect that rounded outline unless other rules override it. That interacts with how backgrounds and foregrounds are clipped; for example, the element’s background painting may be constrained by background-clip settings, and content that would normally overflow the rectangular box can be visually cropped by the rounded corner while also interacting with the element’s overflow behavior.

In layouts with multiple rounded corners, adjacent corner radii are composed together: if the combined curvature would collide or overlap, the user agent will proportionally adjust the radii to produce a smooth, non‑overlapping outline. The property is often used in concert with shorthand and related border controls - for example, the overall corner shorthand border-radius and the element’s line and style settings defined by border - so designers can target a single corner or coordinate all corners for a consistent look. Practically, border-top-left-radius is a useful tool for refining UI details like cards, buttons, and badges where only one corner needs a rounded appearance.

Definition

Initial value
0
Applies to
All elements
Inherited
No
Computed value
Two absolute [length] or percentages
Animatable
Yes
JavaScript syntax
object.style.borderTopLeftRadius

Interactive Demo

Demo of the border top left radius property.

Syntax

border-top-left-radius: [ <length> | <percentage> ]{1,2} 

Values

  • <length>Denotes the size of the circle radius or the semi-major and semi-minor axes of the ellipsis. It can be expressed in any unit allowed by the CSS <length> data types. Negative values are invalid.
  • <percentage>Denotes the size of the circle radius, or the semi-major and semi-minor axes of the ellipsis, using percentage values. Percentages for the horizontal axe refer to the width of the box, percentages for the vertical axe refer to the height of the box. Negative values are invalid.

Example

<div class="container">
<div class="box">
<div class="label">border-top-left-radius: 30px;</div>
</div>
</div>
body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: #f3f6f9;
}

.box {
    width: 280px;
    height: 160px;
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
    border: 4px solid #083d61;
    border-top-left-radius: 30px;
    /* other corners remain square */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.label {
    background: rgba(0, 0, 0, 0.18);
    padding: 8px 12px;
    border-radius: 4px;
}

Browser Support

The following information will show you the current browser support for the CSS border-top-left-radius property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 1st January 2026

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!