Skip to content

Instantly share code, notes, and snippets.

@fanaugen
Created June 20, 2013 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fanaugen/5824075 to your computer and use it in GitHub Desktop.
Save fanaugen/5824075 to your computer and use it in GitHub Desktop.

It’s the one whitespace character between the </div> and the next <div!

Because of that whitespace, and because our boxes are displayed as inline-block, the browser renders an actual whitespace in the current font and size between them, and so the smaller box once again breaks to the next "line".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment