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

CSS border radius


The border-radius CSS property rounds the corners of an item's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.

CSS border radius - how to create - example


With CSS, you can give each element "rounded corners" using proprietary border-radius.

Example 1:

#example-coner1 {
border: 2px solid red;
padding: 10px;
border-radius: 15px;
}

#example-coner2 {
border: 2px solid blue;
padding: 10px;
border-radius: 20px 6px;
}

HTML cod above will display this result for CSS border radius - how to create -

css border radius

Note: The four values for each radius corner are given in this order: 1. top-left, 2. top-right, 3. bottom-right, 4. bottom-left. If bottom-left is missing it is the same as top-right.

CSS border-radius - Specify each corner - How to create

If you specify a single border property radius value, this radius will be applied to all four corners.
However, you can specify each corner separately if you want. Here are the rules:

Four values: the first value is valid for the top left, the second value is applied from the top right, the third value is applied to the bottom right, and the fourth value is applied in the lower-left corner
Three values: the first value is valid for the top left, the second value is for the top-right and the lower-left, and the third value is applied to the bottom-right
There are two values: the first value is applied to the top left and right-hand corner, and the second value is applied from the top right and the lower-left corner
A single value: all four corners are rounded evenly
Here are three examples:
1. Four values ​​- border-radius:15px 50px 30px 5px:
2. three values ​​- border-radius:15px 50px 30px:
3. There are two values ​​- border-radius:15px 50px:

Example 2:
.corner-radius4
{
border-radius:15px 50px 30px 5px;
padding:10px;
width:250px;
height:180px;
border: thin solid #0C0;
margin-left: 18px;
margin-top: 10px;
float: left;
}
.corner-radius5
{
border-radius:15px 50px 30px;
padding:10px;
width:250px;
height:180px;
border: thin solid #0C0;
margin-left: 18px;
margin-top: 10px;
float: left;
background-color: #9FF;
}
.corner-radius6
{
border-radius:15px 50px;
padding:10px;
width:250px;
height:180px;
border: thin solid #0C0;
margin-left: 18px;
margin-top: 10px;
float: left;
background-color: #FF6;
}
The HTML cod above will display this result -

css borderradius



CSS border radius
CSS border radius - 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.


Upload Image, display, edit and delete i...
Login Form with Image background...
How to Create an Image with Transparent ...
Portfolio Gallery Website with filtering...
Simple pagination script PHP MySQLi...
Center Image in div...
Image Hover Overlay Fade...
Sticky image / element / div on scroll...
Responsive images...
Create rounded image in HTML CSS...
Add border around image...
Position Text Over an Image HTML CSS res...
Create a Slideshow Images Gallery...
Create a Sticky Sidebar...
Search bar using CSS HTML...
Shrink Navigation Menu on Scroll...
How to Create Accordion HTML Templates...
Dropdown menu in the navigation bar...
Responsive Top Navigation Bar with mobil...
Split horizontal navigation bar...