CSS - Shorthand property

CSS - Shorthand property

About

A shorthand is a css property that permits to write several css property into one property value.

Example

For instance, the border property is a shorthand property.

The below border property value

h1 {
   border: 1px solid aqua;
}

is equivalent to

h1 {
   border-width: 1px;
   border-style: solid;
   border-color: aqua;
}





Discover More
Css Padding
CSS - Padding

The padding area is the space between the content of the box and its border. In the below image, this are the areas: TP (top padding) BP (bottom padding) LP (left padding) RB (right padding)...
Boxdim
CSS - Border

This pages shows you how to define the border of a box 1px is the border-width solid is the border-style (default none) aqua is the border-color Can be applied to an image. ...
CSS - list-item (list formatting)

This page is the formatting of element seen as a list-item. A list-item has: a principal block box (the normal box) and anadditional box known as themarker box (the marker). All properties applies...



Share this page:
Follow us:
Task Runner