HTML div 3단 분할 grid

by JM note

HTML

<style>
#container {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
}
#box-left {
  background: red;
}
#box-center {
  background: orange;
  text-align: center;
}
#box-right {
  background: yellow;
  text-align: right;
}
</style>
<div id='container'>
    <div id='box-left'>왼쪽</div>
    <div id='box-center'>가운데</div>
    <div id='box-right'>오른쪽</div>
</div>