AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL

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

border-radius: 1-4 length or % / 1-4 length or % or initial or inherit;


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.


Example:
Example 1, How to create CSS Border Radius - examples:
  <!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

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


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


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


CSS Scrollbar Horizontal
CSS Scrollbar in Div
CSS Scrollbar Firefox
CSS Style Scrollbar
CSS Style Text
CSS background color
CSS Div Id Class
CSS Text Wrap
CSS text-align
CSS Text Decoration
CSS Text Shadow
CSS Text Color
CSS Text Bold
CSS Text Size
CSS background image full
CSS background opacity
CSS border radius
CSS rounded corners
CSS font color
CSS Class & ID
CSS align image center
CSS align content
CSS link color
CSS Text Style
CSS Text Font Size
CSS max width &height
CSS width and height
CSS Margin
CSS Padding
CSS Border Style
CSS background
CSS in HTML
Basic Syntax of CSS
CSS Introduction
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


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


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.