In this image, the blue box and sample text are both contained within the same parent element. The blue box is floated on the left margin of the container. Why is it not contained with the container?

Advertisement

  • Floating the blue box increased its height.
  • Floating the blue box on the left also moves it down.
  • Floating the blue box actually shifts it to the right and down.
  • Floating the blue box took it out of document flow and the container is sized only to the sample text.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend