Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
#flex {
display: inline-flex;
border: 1px solid black;
}
#itemA {
background: purple;
width: 50%;
flex: none;
}
#itemB {
background: lightblue;
flex: none;
}
</style>
</head>
<body>
<div id="flex">
<div id="itemA"></div>
<div id="itemB">BBBBB</div>
</div>
</body>
</html>