L

Last updated on

The list-style property is a shorthand property that sets values for three different list-related properties in one declaration: ul { list-style: || || ; } Here’s an example of the syntax: ul { list-style: square outside none; } Which would be the same as the following longhand version: ul { list-style-type: square; list-style-position: outside; list-style-image:

Continue reading →

Last updated on

The line-height property defines the amount of space above and below inline elements. That is, elements that are set to display: inline or display: inline-block. This property is most often used to set the leading for lines of text. p { line-height: 1.5; } The line-height property can accept the keyword values normal or none

Continue reading →

Last updated on

The letter-spacing property controls the amount of space between each letter in a given element or block of text. Values supported by letter-spacing include font-relative values (em, rem), parent-relative values (percentage), absolute values (px) and the normal property, which resets to the font’s default. Using font-relative values is recommended, so that the letter-spacing increases or

Continue reading →

Last updated on

The left property in CSS goes hand in hand with positioning. By default, elements are staticpositioned in which the left property has no effect whatsoever. But when the positioning of an element is relative, absolute, or fixed, the left value plays a big role. div { left: value (px, em, %, pt, etc) || auto

Continue reading →