Flexbox
gap
Learn how to use the CSS gap property.
CSS gap
The gap property sets the gap for an HTML element.
Syntax
.element {
gap: 1rem;
}
HTML Context Example
<div class="card">
This is a styled element.
</div>
<style>
.card {
gap: 1rem;
}
</style>
Notes
Experiment in the CSS playground to see how this affects layout and styling.