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