Category: CSS Reference (g to n)

CSS Reference (g to n)

nth-of-type (:nth-of-type)

nth-of-type (:nth-of-type)

The :nth-of-type CSS pseudo-class matches an element that has an+b-1 siblings with the same element name before it in the document tree, for a given positive or zero value for n, and has a...

:not()

:not()

The negation pseudo-class, :not(X), is a functional notation taking a simple selector X as an argument. It matches an element that is not represented by the argument. X must not contain another negation selector,...

min-width

min-width

The min-width CSS property is used to set the minimum width of a given element. It prevents the used value of the width property from becoming smaller than the value specified for min-width.  ...

min-height

min-height

The min-height CSS property is used to set the minimum height of a given element. It prevents the used value of the height property from becoming smaller than the value specified for min-height.  ...

max-width

max-width

The max-width CSS property is used to set the maximum width of a given element. It prevents the used value of the width property from becoming larger than the value specified for max-width.  ...

max-height

max-height

The max-height CSS property is used to set the maximum height of a given element. It prevents the used value of the height property from becoming larger than the value specified for max-height.  ...

margin-bottom

margin-bottom

The margin-bottom CSS property of an element sets the margin space required on the bottom of an element. A negative value is also allowed. This property has no effect on non-replaced inline elements, like...

margin

margin

The margin CSS property sets the margin for all four sides. It is a shorthand to avoid setting each side separately with the other margin properties: margin-top, margin-right, margin-bottom and margin-left. Negative values are...

list-style-position

list-style-position

The list-style-position CSS property specifies the position of the marker box in the principal block box. It is often more convenient to use the shortcut list-style. Example

list-style-image

list-style-image

The list-style-image CSS property sets the image that will be used as the list item marker. It is often more convenient to use the shorthand list-style. Example

list-style

list-style

The list-style CSS property is a shorthand property for setting list-style-type, list-style-image and list-style-position. Values <‘list-style-type’> <‘list-style-image’> <‘list-style-position’> Example

line-height

line-height

On block level elements, the line-height CSS property specifies the minimal height of line boxes within the element. On non-replaced inline elements, line-height specifies the height that is used in the calculation of the...

link (:link)

link (:link)

The :link CSS pseudo-class lets you select links inside elements. This will select any link, even those already styled using selector with other link-related pseudo-classes like :hover, :active or :visited. In order to style...

linear-gradient

linear-gradient

The CSS linear-gradient() function creates an <image> which represents a linear gradient of colors. The result of this function is an object of the CSS <gradient> data type. Like any other gradient, a CSS...