Monday 28 April 2014

Force IE to use correct positioning

The box model in IE is different and it makes a mess use the following code at the beginning of html to force ie to use standard boxing:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="utf-8"?>

<html xmlns="http://www.w3.org/1999/xhtml">

No comments:

Post a Comment