<html>
<head>
<style>
div.container {
width: 100%;
border: 2px solid black;
}
div.box {
box-sizing: border-box;
width: 50%;
border: 5px solid red;
float: left;
}
</style>
</head>
<body>
<div class="container">
<div class="box">This div occupies the left half</div>
<div class="box">This div occupies the right half</div>
<div style="clear:both;"></div>
</div>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_box-sizing2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:00:45 GMT -->
</html>