CSS Border Radius
CSS Tutorial » CSS Border Radius top left right bottom
The property border-radius defines the radius of the corners.
This property will allows you to add rounded corners to elements.
Property border-radius can have from one to four values as:
One value - border-radius: 12px; - This values applies as: all four corners.
Two values - border-radius: 12px 25px; - This values applies as: first value applies to top-left and bottom-right corners, and the second value applies to top-right and bottom-left corners.
Three values - border-radius: 18px 42px 28px; - This values applies as: first value applies to top-left corner, second value applies to top-right and bottom-left corners, and third value applies to bottom-right corner.
Four values - border-radius: 12px 42px 28px 6px; - This values applies as: first value applies to top-left corner, second value applies to top-right corner, third value applies to bottom-right corner, and fourth value applies to bottom-left corner.
CSS Syntax
We can add CSS Style as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the <head> section
External - by using an external CSS file as style.css
How to create CSS Border Radius - examples
You can try to execute the following code to change CSS Border Radius on this page.
<!DOCTYPE html>
<html>
<head>
<title>CSS Border Radius - examples - example</title>
<style>
h1 {
color:red;
}
.border1 {
border: 3px dotted #0066FF;
padding: 12px;
border-radius: 18px;
}
.border2 {
border: 3px solid green;
padding: 18px;
border-radius: 22px 9px;
}
.border3 {
border: 2px solid red;
padding: 14px;
border-radius: 30px 14px 50px 7px;
}
</style>
</head>
<body>
<h1>CSS Border Radius - examples</h1>
<div class="border1">You text here: Learn how to create CSS Border Radius. </div>
<div class="border2">You text here: Learn how to create CSS Border Radius. </div>
<div class="border3">You text here: Learn how to create CSS Border Radius. </div>
<div style="border: 3px dotted #0066FF; border-radius: 18px">I used inline CSS. You text here:
Learn how to create CSS Border Radius. </div>
</body>
</html>
css border radius, top, circle, bottom, color, left, only top, right, image, stile, not working
CSS Border Radius top left right bottom - css tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.