Friday, April 20, 2012

Let IE7 support div max-height and overflow:auto

To make IE 7 support div max-height and overflow:auto, we need set IE7 in Standards (AKA Strict) mode.

To do that, add this on the top of the html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

No comments:

Post a Comment