Проблема в том, что если добавляю в sec1 или sec2 текст, то див выпадает вниз. Если добавить в оба, они остаются на местк. Почему так происходит?
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="index.css"/>.
</head>
<body>
<div class="content">
<div class="section">
<div class="section1">
<span>123</span>
</div>
<div class="section2">
</div>
</div>
</div>
</body>
</html>
section{
background-color: #c77700;
}
.section1{
display: inline-block;
height: 200px;
width: 200px;
background-color: #2b4554;
}
.section2{
display: inline-block;
height: 200px;
width: 200px;
background-color: #0f834d;
}