Pseudo-elements allow to manipulate elements that don’t exist in the document tree. It can be the content of the document element (first line, first letter) or element that does not exit in document tree but can be create through the pseudo-element . For example first line, first letter can be styled by using pseudo-elements like […]
The outline Css property draws the line around the element. The outline property is similar to the border property but is not a part of box model like the border property so it’s not a part of the element’s dimensions. By default, the outline is drawn starting just outside the border edge.
The CSS data type apples to distant measurements for the following CSS properties: width, height, margin, padding, font-size, border-width, text-shadow etc.. There are two types of length units: relative and absolute.
:last-of-type – pseudo-class | Selectors Level 3 The :last-of-type selects the last sibling of given type.
:first-of-type – pseudo-class | Selectors Level 3 The :first-of-type selects the first sibling of the given type.
:only-of-type – pseudo-class | Selectors Level 3 The :only-of-type matches element that is only child of its parent element of given type.
:nth-last-of-type() – pseudo-class | Selectors Level 3 The :nth-last-of-type(an+b) selects last child of its parent element but this child elements is of the specified type. The pattern (an+b) for selected children works the same as for :nth-of-type() but the counting begins form the bottom parent element.
:nth-of-type – pseudo-class | Selectors Level 3 The :nth-of-type(an+b) allows you to select one or multiple elements according to their positions in their parent element. It works similar to nth-child() pseudo-class but with :nth-of-type pseudo-class you select the same type of tag. The :nth-of-type() takes only designated children elements, counts them and matches to the […]
:last-child – pseudo-class | Selectors Level 3 The :last-child selects any element that is last child of its parent.
:only-child – pseudo-class | Selectors Level 3 The :only-child selects element that is the only child of its parent.