complete-intro-to-web-dev-v3 icon indicating copy to clipboard operation
complete-intro-to-web-dev-v3 copied to clipboard

clear: right property is not necessary and can be removed

Open wondersavant opened this issue 2 years ago • 0 comments

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>

wondersavant avatar Oct 17 '23 19:10 wondersavant