Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
body {
margin: 0px;
}
#flexbox {
border: 1px solid;
width: 140px;
background-color: #fff;
display: flex;
flex-wrap: wrap;
height: 200px;
align-content: space-evenly;
}
.item {
width: 70px;
height: 40px;
background-color: #007bff;
color: white;
display: flex;
}
.rule {
position: absolute;
height: 5px;
background: gold;
width: 140px;
left: 1px;
}
</style>
<div class="rule" style="top: 68.5px;"></div>
<div class="rule" style="top: 128.5px;"></div>
<div id="flexbox">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>