I have a <div>
with an <h1>
tag in it (at the moment that is the only thing. I am building this site top-down). I am getting a very large space above the title. When drilling down with firebug, the space is not included in the <body>
or the <div>
, but is a margin above the <h1>
tag. Shouldn't the whole tag, margin and all, be surrounded by the parent container? is there any way to do this? At the moment that space is completely unstyleable, not belonging to any container.
For example:
<html style="background:green">
<head>
</head>
<body style="background:blue">
<div style="background:red">
<h1 style="background:yellow">Hello world!</h1>
</div>
</body>
</html>
You can clearly see when displaying this that neither the <body>
nor the <div>
surround that margin.
` itself? Headings are always packed with noticeable margins..
– tomsseisums Jun 05 '11 at 19:13