With CSS3 box-shadow property, you can easily
create rounded border without using a designed image created by any graphics
software like Photoshop. This property is supported by IE9+, Firefox 4, Chrome,
Safari 5+, and Opera. For Safari a prefix -webkit-
(-webkit-box-shadow)
is needed. For Firefox 3.6 or earlier you need to use the -moz-box-shadow
property. The default value of box-shadow
property is none. The box-shadow
property can add one or more drop shadow for the box. The property has a list
of shadow separated by comma; each has 2-4 length value. There has an optional color and an optional inset value. The format is –
box-shadow: h-shadow
v-shadow blur spread color inset;
h-shadow is a required value used to horizontal
shadow.
v-shadow is a required value used to vertical
shadow.
blur is optional used to blur distance.
spread is optional used to blur distance.
color is optional used to color of the
shadow.
inset is optional used to Changes the
shadow from an outer shadow (outset) to an inner shadow.
Example:
box-shadow:10px 10px 5px 5px pink inset;