Lesson 2 CSS3 Properties

In this lesson we will learn some more advanced css3 properties and then we will try and see if you remember all that you have learned.

What you should know allready is

Objective

This lesson will consist of Border Radius, Box Shadow ,Text Shadow ,RGBa


Border Radius

This is shorthand for the border-radius it can be used to define all four corners all at once. The property accepts either one or two sets of values, each consisting of one to four lengths or percentages.

The first set of (1-4) values define the horizontal radii for all four corners. An optional second set of values, preceded by a ‘/’, define the vertical radii for all four corners. If only one set of values are supplied, these are used to determine both the vertical and horizontal equally.

For each set of values the following applies:

If all four values are supplied, these represent the top-left, top-right, bottom-right and bottom-left radii respectively. If bottom-left is omitted it is the same as top-right, if bottom-right is omitted it is the same as top-left, and if only one value is supplied it is used to set all four radii equally.

Browser Support : Specificity Rules:

This is what the
border-radius:5px 10px 5px 10px / 10px 5px 10px 5px


border-radius: 5px 10px 5px 10px / 10px 5px 10px 5px;
border-radius: 5px;
border-radius: 5px 10px / 10px;


Try more with this Generator