با استفاده از ویژگی display در css، دو div را در کنار یکدیگر قرار دهید که قابلیت responsive داشته باشد.
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; } @media screen and (max-width: 740px){ #c1 , #c2{ width: 100%; } }
css
js