float and clear

PHOTO EMBED

Mon Dec 26 2022 13:22:24 GMT+0000 (Coordinated Universal Time)

Saved by @dsouzanathan

/The float property is often set using one of the values below:

//left - moves, or floats, elements as far left as possible.
//right - moves elements as far right as possible.
.green-section {
  width: 50%;
  height: 150px;
}
 
.orange-section {
  background-color: orange;
  width: 50%;
  float: right;
}

//clear
div.special {
  clear: left;
}
content_copyCOPY