In ie8, the following code does not play nicely.
[CODE]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
<style type=”text/css”>
div {
padding: 0px;
margin: 0px;
}
</style>
</head>
<body>
<div style=”width: 200px;border: 1px solid #000″>
<div style=”float:left; border: 1px solid #0F0; width: 98px;”>sdfsd</div>
<div style=”float:left; border: 1px solid #0f0; width: 98px;”>dsfsf</div>
</div>
</body>
</html>
I expect to see the two divs lined up horizontally next to each other. The problem may be to do with the borders, since if I remove them and set the width of each inner div to 100px it works! Also if I add another pixel to the 200 it shows correctly.
Can some one please help.