Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style>
.flex {
display: flex;
}
.flex div {
flex-basis: 50%;
display: inline-block;
}
#col1 {
background-color: #3ad67d;
}
#col2 {
background-color: #d5d6e6;
}
</style>
</head>
<body>
<div class="flex">
<div id="col1">Text 1</div>
<div id="col2">Text 2</div>
</div>
</body>
</html>