1

Minimal example, just 2 divs:

<!DOCTYPE html>
<html>
  <head>
    <style>
      div {
        display:inline-block;
        width:50px;
        height:50px;
        background-color:yellow;
      }
    </style>
  </head>
  <body>

    <div>whoa</div>
    <div></div>

  </body>
</html>

Plunker here

enter image description here

What is the empty space above the first div? Why? How do I align them both to the top of the page, regardless if there is text in them?

tenfour
  • 36,141
  • 15
  • 83
  • 142

0 Answers0