با استفاده از ویژگی display در css، دو div را در کنار یکدیگر قرار دهید.
html 1 2
html
css #c1{ display: inline-block; width: 49.8%; background-color: red; } #c2{ display: inline-block; width: 49.8%; background-color: blue; }
css
js