Curious fact: when the text "WHY?" is added to the first div, the red square drops down and aligns below the blue square. However, if "WHY?" is absent, the two squares remain side by side. Why does this happen? A common question for beginners learning about CSS layout.
body{
margin: 0
}
div {
border: 10px solid;
display: inline-block;
font-size: 30px;
height: 200px;
width: 200px
}
#ed{
border-color: red
}
#ed2{
border-color: blue
}
<div id="ed">WHY?</div>
<div id="ed2"></div>