Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>
CSS Gap Decorations: flex column and row gaps are painted in vertical-lr and center aligned.
</title>
<link rel="match" href="flex-gap-decorations-006-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;
row-gap: 30px;
row-rule-style: solid;
row-rule-width: 30px;
row-rule-color: blue;
height: 300px;
width: 300px;
flex-wrap: wrap;
align-content: center;
writing-mode: vertical-lr;
}
.items {
width: 70px;
height: 70px;
}
</style>
<div id="flexbox">
<div class="items">One</div>
<div class="items">Two</div>
<div class="items">Three</div>
<div class="items">Four</div>
<div class="items">Five</div>
<div class="items">Six</div>
</div>