Click, adjust, and see CSS properties in action
Click the property values to see how flex containers arrange their children.
.container {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: stretch;
flex-wrap: nowrap;
gap: 10px;
}
Experiment with CSS Grid column and row configurations.
.container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto;
gap: 5px;
}
Adjust margin, border, and padding to see how the box model works.
.element {
margin: 20px;
border: 5px solid #333;
padding: 20px;
width: 100px;
box-sizing: content-box;
}
Adjust font properties and see the text change in real-time.
.text {
font-size: 24px;
font-weight: 400;
line-height: 1.4;
letter-spacing: 0px;
text-align: left;
text-transform: none;
}
See how different position values affect element placement.
.element {
position: static;
/* top and left have no effect on static */
}
Adjust transform properties to rotate, scale, and move elements.
.element {
transform: rotate(0deg) scale(1) translateX(0px) translateY(0px) skewX(0deg);
}
Select an animation to see it in action, then copy the keyframes.
/* No animation selected */
Pick a colour and see it in different CSS formats.
#aa66ee
rgb(170, 102, 238)
hsl(270, 80%, 67%)
.element {
background-color: #aa66ee;
/* or: rgb(170, 102, 238) */
/* or: hsl(270, 80%, 67%) */
}
See how different CSS units compare at the same numeric value.