Greetings,
I'm facing a challenge with my code:
<div id="left"></div>
<div id="center"></div>
<div id="right"></div>
My goal is to ensure that #center always displays at a minimum size, while the other two divs will collapse or even disappear if the window is resized or viewed on a smaller resolution.
Here's the CSS I currently have:
div {display:table-cell;}
#left, #right {width:auto;}
#center {width:1460px;}
This setup works well on a 1080p screen, but not on a smaller one like 1024 width where a scroll bar appears. In such cases, I want #center to cover the entire width and the other two divs to collapse completely to accommodate. How can I achieve this using only HTML and CSS?
Appreciate your assistance.