CSS | border-top-left-radius Property

In CSS the border-top-left-radius property is used to specify the radius of the top left corner of an element.

Note: The border rounding can be a circle or an ellipse depending on the value of the property. If the value is 0 then there is no change in the border, it remains a square border.

Syntax:

border-top-left-radius: value;

Property Values:

Value Functionality
length Used to specify the radius in terms of numerical value.
percentage Used to specify the radius in terms of percentage.
initial Used to initialize the property to it’s initial value.
inherit Used to inherit the value from it’s parent element.

Example-1: Using “length”.

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <title>
        CSS | border-top-left-radius Property
    </title>
    <style>
        .gfg {
            border: 2px solid black;
            background: url(
            padding: 100px;
            border-top-left-radius: 75px;
        }
    </style>
</head>
  
<body>
    <div class="gfg">
    </div>
</body>
  
</html>

chevron_right


Output:

Example-2: Using “percentage”.

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <title>
        CSS | border-top-left-radius Property
    </title>
    <style>
        .gfg {
            border: 2px solid black;
            background: url(
            padding: 100px;
            border-top-left-radius: 60%;
        }
    </style>
</head>
  
<body>
    <div class="gfg">
    </div>
</body>
  
</html>

chevron_right


Output:

Browser Support: The browser supported by CSS | border-top-left-radius Property are listed below:

  • Chrome: 5.0, 4.0 -webkit-
  • Edge: 9.0
  • FireFox: 4.0, 3.0 -moz-
  • Opera: 10.5
  • Safari: 5.0, 3.1 -webkit-


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.