Hello all, I have been reading alot about IE’s rendering problems with margins etc and “haslayout”.
My problem is I have a floated div and inside that div, the first <p> tag does not have any top margin in ie7, but it does in firefox. I have read about using overflow etc to force margins but I can not get it to work. To simplify things, i will show you what code i want to work. Any suggestions would be greatly appreciated!
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “
<html xmlns=”
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
</head>
<body>
<div style=”float:left; width:75%; border:solid 1px #000000; “>
<p style=”font-size:1em;border:solid 1px #000000; width:100%;”>TEST</p>
<h1 style=”font-size:1em;border:solid 1px #000000;”>TEST</h1>
</div>
</body>
</html>
So what i need is there to be the same margin? (space) from the top of the page to the first p tag in ie and firefox. IE has none, firefox does.