Drupalist Drupalist - 6 months ago 13
HTML Question

Extra whitespace under the HTML tag

This is the website I am developing right now: in-nabavi.com. There is nothing in it but a few blocks. As you see there is an extra white space at the end of the document that I really have no idea why it is in there.

This is the firebug result

enter image description here

As you see the area with red line around it is not included in the HTML area.

I also tried the following

body, html{
margin:0;
height: 100%;
}


but it didn't work again.

Thanks.

Answer

You have used content: "." inside clearfix class for setting layout. Use content: ""; only.

.clearfix:after {
   visibility: hidden;
   display: block;
   content: "";
   clear: both;
   height: 0;
}
Comments