Remind students to clear elements after using float so that extra elements don’t try to float as well when teaching CSS.

  • In a typical HTML page, most elements get put on a new line, images don’t automatically get put onto new lines. If you don’t want this to happen you have to float the item so that they will go side by side.
  • Even if you say you only want to float these two elements, the browser will pull the other elements.
    • You have to tell the page, clear left or clear right so more stuff doesn’t get pulled up the page.

More about this tip

Tags

External Source

Interview with Breanna Turcsanyi