Skip to content
Tutorials Center
My learning

Topics

CSS Reference ยท Borders, Outlines and Shadows

The border-top-left-radius property

Reference for the CSS border-top-left-radius property: round only the top-left corner with one or two radii, with a live example, syntax and usage notes.

The border-top-left-radius property rounds the top-left corner of a box and leaves the other three alone. It is one of four corner longhands that make up the border-radius shorthand. Reach for it when you want to change a single corner, for example to override one corner of a rounded component.

In left-to-right, horizontal writing this corner is where the top and left borders meet. The property is physical: it always means the top-left corner on screen, whatever the writing mode. For a direction-aware version use border-start-start-radius.

CSS
.tab {
  border-top-left-radius: 20px;
}

Try it

Only the top-left corner

Syntax

CSS
border-top-left-radius: <length-percentage>{1,2};
  • Initial value: 0
  • Applies to: all elements (but not internal table elements when border-collapse is collapse)
  • Inherited: no
  • Animatable: yes, as lengths and percentages
  • Computed value: two absolute lengths or percentages

Values

Value Description
One <length> or <percentage> A circular corner of that radius.
Two values The first is the horizontal radius and the second is the vertical radius, giving an elliptical corner. Unlike the border-radius shorthand, there is no slash.
Percentages The horizontal radius is relative to the width of the border box and the vertical radius to its height.

Usage notes

  • No slash here. border-radius: 60px / 20px and border-top-left-radius: 60px 20px describe the same corner. Do not write a slash in a longhand.
  • Override a shorthand. Put the longhand after the shorthand: border-radius: 12px; border-top-left-radius: 0; gives three round corners and one square one.
  • Radii can be scaled down. If neighbouring radii would overlap, the browser reduces all of them proportionally.
  • Negative values are invalid and the declaration is ignored.
  • Clipping. The background and box shadow follow the curve. Child content is only clipped if the element sets overflow to something other than visible.

Browser support

Supported in every current browser.