I'm working through trying to get a scroll box to adjust its height depending on its width so that a web page looks good on laptops as well as large screens. Getting pages to look the same across IE, Firefox, and Chrome is vexing.
I am using the following, which works fine with Firefox and Chrome. It has no affect on IE;
@media(max-width:1366px)
{
.scroll
{
max-height: 400px;
overflow-y: auto;
overflow-x: hidden;
}
}
@media(min-width:1824px)
{
.scroll
{
max-height: 600px;
overflow-y: auto;
overflow-x: hidden;
}
}
Is there anything that can be added to this syntax to make it work with IE? I'm currently doing this without javascript because, frankly, I don't know much about JS yet.