freeCodeCamp Challenge Guide: Push Elements Left or Right with the float Property

Push Elements Left or Right with the float Property

Add float: left to the #left selector and float: right to the #right selector.


Solutions

Solution (Click to Show/Hide)
#left {
  float: left;
  width: 50%;
}

#right {
  float: right;
  width: 40%;
}

aside, section {
  padding: 2px;
  background-color: #ccc;
}
3 Likes