Edit in JSFiddle

<div class="div-1">1번 DIV</div>
<div class="div-2">2번 DIV</div>
<div class="div-3">3번 DIV</div>
<div class="div-4">4번 DIV</div>
div {
  /* 이 부분은 div를 표시하기 위한 부분이니 신경쓰지 마세요 */
  background-color: green;
  color: white;
  margin: 3px 0;
}

.div-2, .div-3 {
  display: inline;
}