Border radius in CSS is a property that allows you to control the shape of the corners of an element, giving them rounded or custom shapes. It is commonly used to soften the sharpness of rectangular elements and add visual appeal to various parts of a webpage, such as buttons, containers, avatars, and images.
Here's a breakdown of the property values:
The border-radius property is used to set the radius of each corner individually or all corners at once. The value provided determines the curvature of the corners. You can specify the radius using length units (such as pixels or percentages) or specific keywords.
Here are some key concepts related to border radius in CSS:
Border radius is a versatile CSS property that helps create visually appealing and modern designs by softening the edges of elements. It is widely supported by all major browsers and offers flexibility in achieving various shapes and styles, contributing to the overall aesthetics and user experience of a webpage.
<!DOCTYPE html> <html lang="en"> <head> <title>Tutor Joes</title> <style> .box1 { height: 150px; width:150px; background: -webkit-linear-gradient(#e67e22,#e74c3c); border-radius: 0px 20px 0px 20px; /* border-radius: 0px 0px 0px 0px; -moz-border-radius: 0px 0px 0px 0px; -webkit-border-radius: 0px 0px 0px 0px; */ } .box2{ height: 300px; width: 300px; background-color: cornflowerblue; /* border-radius: 40px; */ /* border-radius: 40px 180px; */ /* border-radius: 40px 200px 10px 0; */ border-radius: 50%; } </style> </head> <body> <h1>Border Radius In CSS</h1> <div class="box1"></div> <div class="box2"></div> </body> </html>Live Preview
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions