html - Why is there still blank space? -
this question has reply here:
small margin / gap @ top of document 1 replythis html code of site's skeleton:
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="css/base.css" rel="stylesheet" type="text/css" > </head> <body> <div id="center"> </br> </br> </div> </body> </html>
and how base.css looks like:
#center{ border:0px; margin:0px auto; width:960px; background-color: #66ffff; padding:0px; }
the problem there still blank space upon website, here picture: http://s4.postimage.org/6fagq090d/untitled.png (red arrow points space thought disappear putting border, margin , padding on 0).
"auto" on margin i've set aligns on center, i'm not getting why can't move space. i've tried deleting space between , didn't help. i'm making mistake?
you need remove margin around html , body :
html, body { margin:0; padding:0; }
html css
No comments:
Post a Comment