Rounded Corner in CSS
The Rounded Corner in CSS is the use of the border-radius attribute to circle the elements.
The Border-radius property in CSS
The Border-radius attribute in CSS is used to determine the radius of the element's corners and round it to that radius.
For example:
1. Bo round the corners of an element with the specified background color

#rcorners1 {
border-radius: 25px;
background: #58257b;
color:white;
padding: 20px;
width: 200px;
height: 150px;
}
2. Round the corners of an outer border element

#rcorners2 {
border-radius: 25px;
border: 2px solid #58257b;
padding: 20px;
width: 200px;
height: 150px;
}
3. Bo round the corners of an element with the background as a defined image

#rcorners3 {
border-radius: 25px;
background: url(paper.gif);
background-position: left top;
background-repeat: repeat;
padding: 20px;
width: 200px;
height: 150px; }
Full code:
Border-radius attribute
Round the corners of an element with the specified background color:
Rounded Corner in CSS
Bo round the corners of an outer border element:
Rounded Corner in CSS
Bo round the corners of an element with the background as a defined image
Rounded Corner in CSS
The value of the corners of border-radius
The border-radius attribute can have from one to four values. First you need to distinguish the corners in an element:

- Corner-1: top-left corner
- Corner-2: top-right corner
- Corner-3: bottom-right corner
- Corner-4: bottom-left corner
1. The border-radius case has 4 values
These four values will correspond to four corners: border-radius: angle-1 angle-2 angle-3 angle-4
For example:

#rcorners1 {
border-radius: 15px 50px 30px 5px;
background: #58257b;
padding: 20px;
width: 200px;
height: 150px;
}
2. The border-radius case has 3 values
These three values correspond to the following:
- First value: Angle -1
- Second value: Angle-2 and Angle-4
- Third value: Angle-3
For example:

#rcorners2 {
border-radius: 15px 50px 30px;
background: #58257b;
padding: 20px;
width: 200px;
height: 150px;
}
3. The border-radius case has 2 values
These two values correspond to the following:
- First value: Angle -1 and Angle-3
- Second value: Angle-2 and Angle-4
For example:

#rcorners3 {
border-radius: 15px 50px;
background: #58257b;
padding: 20px;
width: 200px;
height: 150px;
}
4. Border-radius case has 1 value
This value applies to all four corners, creating an image with equal angles
For example:

#rcorners4 {
border-radius: 15px;
background: #58257b;
padding: 20px;
width: 200px;
height: 150px;
}
Full code :
The value of the corners of border-radius
Border-radius: 15px 50px 30px 5px:
Border-radius: 15px 50px 30px:
Border-radius: 15px 50px:
Border-radius: 15px:
Previous post: CSS Specificity
Next article: Border Image - Create a picture border in CSS
You should read it
- Border in CSS
- Border Image - Create image borders in CSS
- How to set up an internal RADIUS Server - Part 1
- Create a border (border) around the text
- How to draw a frame, create a border using Photoshop
- How to get a curved border display on Android phones like Samsung Galaxy S8
- How to set up an internal RADIUS Server - Part 2
- Beautiful border frames on Word
May be interested
- How to get a curved border display on Android phones like Samsung Galaxy S8one way to help android users experience curved screen borders on mobile phones is by changing the display border from square to curved. the following article will show you how to get a curved border display on your android phone, using the cornerfly app.
- The simplest way to fix a black corner on a laptop screena black corner on your laptop screen is a sign that your computer is having an error. learn how to fix a black corner on your laptop screen.
- How to decorate the working corner to welcome Christmas to the office workersanother christmas season is coming soon, goodbye to the boring everyday office space with these beautiful corner decorating ideas.
- How to Quickly Open the Notification Center on a Macto quickly open notification center on mac, from any app or menu, click on the notification center icon ('⋮≡') in the menu bar at the upper right corner of the screen. move the cursor to upper right corner of the screen.
- Why are WiFi waves often weak in rooms in the corner?one of the weaknesses of wifi is that the wave quality is not stable when receiving devices and transmitters are separated by many walls.
- Instructions for pinning Youtube videos under the screen cornerby pinning youtube videos under the corner of the screen, users can monitor videos at any tab or any computer operation from surfing the web, reading newspapers, going to facebook, ...
- Corel Draw: Use the photo corner effect in Corel Drawhowever, you should note that corel only creates drawing objects as vector images, so if you want to use the effects of bitmap images you must convert them to bitmap with the bitmaps command> convert to bitmap. please try, the photo corner effect with corel draw.
- Overnight charging laptop exploded a corner of the officethe surveillance camera captured the image of an overnight charging laptop suddenly exploding violently, destroying an office corner in letchworth, hertfordshire (england).
- How to Round in Excelthis wikihow teaches you how to round the value of a cell using the round formula, and how to use cell formatting to display cell values as rounded numbers. enter the data into your spreadsheet.
- Cornering steps in AutoCAD trongbounding in autocad will help you turn sharp corners into soft rounded corners. this is one of the basic operations that cad and technical drawing users need to know to apply in their work.