Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<link href="../support/flexbox.css" rel="stylesheet">
<style>
.flexbox {
border: 1px solid black;
width: 400px;
height: 200px;
}
.item1 {
background: lightblue;
}
.item2 {
background: lime;
}
</style>
</head>
<body>
<p>The test passes if the flex items are properly centered in each column</p>
<div class="flexbox column wrap">
<div class="item1 align-self-center">centeredWithMargins</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
<div class="item2 align-self-center">centeredWithAlignSelf</div>
</div>
</body>
</html>