با استفاده از css flex، سه div را در کنار یکدیگر قرار دهید.
html
css #main { display: flex; } #c1 { background-color: red; flex: 1; height: 200px; } #c2 { background-color: blue; flex: 1; } #c3 { background-color: green; flex: 1; }
css
js