Pseudo Classes And Pseudo Elements In CSS

Manipulating fake elements in CSS to get additional control over CSS styling. Pseudo-selectors select elements in a particular state. Pseudo-elements are the Real but inaccessible elements.


What is margin collapsing in CSS and how it works?

Margin property has one of the behaviors that other box-model properties do not have. Margins can collapse in certain conditions. This article covers various rules to understand margin collapsing behavior.