Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>
CSS Gap Decorations: flex column and row gaps are painted align-items.
</title>
<link rel="match" href="flex-gap-decorations-007-ref.html">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
body {
margin: 0px;
}
#flexbox>* {
background-color: rgb(96 139 168 / 0.2);
}
#flexbox {
border: 2px solid rgb(96 139 168);
border-width: 2px;
display: flex;
column-gap: 10px;
column-rule-style: solid;
column-rule-width: 10px;
column-rule-color: red;
width: 170px;
flex-wrap: wrap;
align-items: flex-end;
}
.items {
width: 50px;
}
#three {
height: 40px;
}
</style>
<div id="flexbox">
<div class="items">One</div>
<div class="items">Two</div>
<div class="items" id="three">Three</div>
</div>