Left Alignment Using CSS

PROBLEM: My layer aligns left, but in Internet Explorer it is aligned to the center.

SOLUTION: Make sure you have the following lines in your html file.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>

<body>

</body>
</html>

WHY: Internet Explorer needs the these lines to correctly designate the code.

NOTE: There are other reasons this may be happening, but try this first because you may have the code right after all.


Facebooktwittergoogle_pluspinterest