complete-intro-to-web-dev-v3
complete-intro-to-web-dev-v3 copied to clipboard
clear: right property is not necessary and can be removed
https://btholt.github.io/complete-intro-to-web-dev-v3/lessons/css/layout-css layout-css
<style>
.ex-box {
border: 3px solid #aaa;
background-color: #eee;
height: 200px;
width: 200px;
display: flex;
align-items: center;
justify-content: center;
float: left;
margin-right: 10px;
border-radius: 5px;
font-size: 30px;
}
.ex-box:last-of-type {
clear: right;
}
</style>
<div class="ex-box">Box 1</div>
<div class="ex-box">Box 2</div>