CSS Properties
CSS Properties
COLOR: CSS uses color values to specify a color. Typically, these are used to set a color either for the foreground of an
element (i.e., its text) or for the background of the element. They can also be used to affect the color of borders and
other decorative effects.
BACKGROUND:
FONTS:
TEXT:
BORDERS: The border properties allow you to specify how the border of the box representing an element should look.
(border-bottom, border-top, border-left, border-right)
1
o double: Border is two solid lines.
o groove: Border looks as though it is carved into the page.
o ridge: Border looks the opposite of groove.
o inset: Border makes the box look like it is embedded in the page.
o outset: Border makes the box look like it is coming out of the canvas.
• The border-width specifies the width of a border.
MARGINS: The margin property defines the space around an HTML element. (margin-top, margin-bottom, margin-right,
margin-left)
• The margin specifies a shorthand property for setting the margin properties in one declaration.
margin: 20px 15px 20px 15px;
IMAGES:
LINKS:
PADDINGS: The padding property allows you to specify how much space should appear between the content of an
element and its border. (padding-top, padding-bottom, padding-left, padding-right)
DIMENSION:
CSS3 PROPERTIES:
BORDER-RADIUS: The border-radius property is a shorthand property for setting the four border-*-radius properties.
• border-radius:2em;
is equivalent to:
border-top-left-radius:2em;
border-top-right-radius:2em;
border-bottom-right-radius:2em;
border-bottom-left-radius:2em;
• transition: 3s;
• opacity: 0.6;