CSS3 is the latest standard for CSS.
CSS3 Modules
- Selectors
- Box Model
- Backgrounds and Borders
- Image Values and Replaced Content
- Text Effects
- 2D/3D Transformations
- Animations
- Multiple Column Layout
- User Interface
CSS3 Rounded Corners
border-radius property, you can give any element "rounded corners".Browser Support
| Property | |||||
|---|---|---|---|---|---|
| border-radius | 5.0 4.0 -webkit- | 9.0 | 4.0 3.0 -moz- | 5.0 3.1 -webkit- | 10.5 |
CSS3 border-radius Property
border-radius property.Example
border-radius: 25px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px; }
#rcorners2 {
border-radius: 25px;
border: 2px solid #73AD21;
padding: 20px;
width: 200px;
height: 150px; }
#rcorners3 {
border-radius: 25px;
background: url(paper.gif);
background-position: left top;
background-repeat: repeat;
padding: 20px;
width: 200px;
height: 150px; }
CSS3 border-radius - Specify Each Corner
border-radius property, this radius will be applied to all 4 corners.- Four values: first value applies to top-left, second value applies to top-right, third value applies to bottom-right, and fourth value applies to bottom-left corner
- Three values: first value applies to top-left, second value applies to top-right and bottom-left, and third value applies to bottom-right
- Two values: first value applies to top-left and bottom-right corner, and the second value applies to top-right and bottom-left corner
- One value: all four corners are rounded equally
Example
border-radius: 15px 50px 30px 5px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px; }
#rcorners5 {
border-radius: 15px 50px 30px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px; }
#rcorners6 {
border-radius: 15px 50px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px; }
Example
border-radius: 50px/15px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px; }
#rcorners8 {
border-radius: 15px/50px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px; }
#rcorners9 {
border-radius: 50%;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;}
CSS3 Border Images
border-image property, you can set an image to be used as the border around an element.Browser Support
CSS3 border-image Property
border-image property allows you to specify an image to be used instead of the normal border around an element.- The image to use as the border
- Where to slice the image
- Define whether the middle sections should be repeated or stretched
border-image property takes the image and slices it into nine sections, like a tic-tac-toe board. It then places the corners at the corners, and the middle sections are repeated or stretched as you specify.border-image to work, the element also needs the border property set!CSS3 Backgrounds
background-sizebackground-originbackground-clip
CSS3 Colors
- RGBA colors
- HSL colors
- HSLA colors
- opacity
CSS3 Gradients
- Linear Gradients (goes down/up/left/right/diagonally)
- Radial Gradients (defined by their center)












