| Be the first user to complete this post  | Add to List | 
Making max width work in internet explorer
If you have ever had to pull your hair out over why the max-width property is not having any effect on your markup in internet explorer, the solution is quite simple, yet baffling. It seems like Internet Explorer only honors the max-width property if the width of an element is also set. Here's the first(but not the ideal) solution
.myclass {
  width: 100%;
  max-width: 500px;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
   .myclass {
      width: 100%;
   }
}
.myclass {
  max-width: 500px;
}
Also Read:
- position:fixed
- Understanding the CSS 3 transition property syntax
- css: margin does not work
- css - vertically align text
- Getting started with localStorage vs sessionStorage in html5
 
    