HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
PHP Tutorial

PHP forms
HTML Tutorial

CSS Tutorial

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

2697. EchoEcho.Com - Web Hosting - JavaScript Tutorial - HTML tutorial - CSS Tutorial - Flash Tutorial - Online for free!
Web hosting and tutorials for html javascript css flash. Online web master forum design articles, graphics, tools, tricks and much more
http://www.echoecho.com/

3009. CSS link color - CSS link href HTML - Link without underline, css tutorial
CSS link color - CSS link href HTML - Link without underline css tutorial
http://www.agernic.com/css-tutorial/css-link-color-css-link-href-html-link-without-underline.html

3303. CSS Class and ID, The Difference Between ID and Class, css tutorial
CSS Class and ID, The Difference Between ID and Class css tutorial
https://www.agernic.com/css-tutorial/difference-between-id-and-class.html

2227. CSS Tutorial - Class and Id
To set a class of elements that share the same properties, the attribute with the same name will be used. On the other hand, you can also use elements id to add styles but it has some restriction when using it. Go on reading to find out more.
https://tutorialehtml.com/en/css-tutorial-class-and-id/

2707. CSS Lists - CSS tutorial
EchoEcho.Com : The complete CSS tutorial
http://www.echoecho.com/csslists.htm

2607. The Complete CSS tutorial
The Complete CSS tutorial
http://www.echoecho.com/css.htm

Your add here
PHP explode() function

PHP strcmp() function

PHP str_replace() function

PHP strtolower() function

PHP trim() function

PHP str_split() function

PHP ltrim() function

PHP substr() function

PHP ucfirst() function

PHP isset() Function

PHP implode() function

PHP wordwrap() function

PHP htmlentities() function

PHP md5() function

PHP strip_tags() function

PHP printf() function

PHP Tutorial - Learn PHP in simple and easy steps starting from basic
HTML Table Style
CSS width and height - CSS Properties - Dimensions units
CSS Border Style
The simplest PHP script
CSS text-align