Explore the Cascade, Specificity, Box Model geometry, and modern one- and two-dimensional layout systems (Flexbox & CSS Grid) through interactive visualizers.
Adjust margin, border, padding, and compare content-box vs border-box sizing.
.card-element {
box-sizing: border-box;
width: 240px;
height: 100px;
padding: 20px;
border: 4px solid #facc15;
margin: 24px;
background-color: #0284c7;
}Tweak main axis, cross axis, spacing, and wrapping in real time.
.flex-container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
gap: 16px;
}When multiple rules target the same element, browsers calculate a 3-column specificity score (IDs, Classes/Attributes, Elements).
#main-header.btn:hover, [data-open]article, h2, pstyle="color: red;"