Saturday, July 10, 2010

IE CSS Compatibility Model

IE by default does not follow the CSS Standard specification e.g. it includes border and padding in width and height of element but standard threats them separately. In order to use standard definition add following doctype in the page:

<!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