Tag Archives: selector

Pseudo-elements

Tip: Pseudo-classes are with one colon. Pseudo-elements are written with two colons. By default, any pseudo-element is an inline element. Example to un-italicize and give some space to a book emoji in a h1 element: h1::first-letter { font-style: normal; margin-right: … Continue reading

Posted in Web Developer Course | Tagged , , , , , , , , | Leave a comment

CSS Theory #1: Conflicts between Selectors

When there are multiple declarations for the same element then: 1. Declarations marked “! important” are used first. It should only be used as a last resort, to fix code. It is more of a hack, and should not be … Continue reading

Posted in Web Developer Course | Tagged , , , , | Leave a comment