我无法删除上,下,左和右frmo标签的边距 . 我究竟做错了什么?
CSS
@CHARSET "utf-8";
/* Makeshift CSS Reset */
*{
margin: 0 auto;
padding: 0 auto;
}
/* Tell the browser to render HTML 5 elements as block */
header, footer, aside, nav, article, section{
display: block;
}
html, body{
margin: 0 auto;
padding: 0 auto;
font-family: Calibri, Verdana, Helvetica, Tahoma, Sans-Serif;
text-align: justify;
font-size: 66%;
background-color: #1d293f;
top: 0px;
font-size-adjust: none;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-height: normal;
}
header, h1{
margin: 0 auto;
padding: 0;
border: 0;
/*margin: -7px -1px -4px -1px;*/
overflow: hidden; /*Remove top-margin page*/
}
header{
width: 80%;
background-color: #fbf585;
}
section{
margin: 0 auto;
padding: 0 auto;
width: 80%;
background-color: #ffffff;
}
section > h1{
width: 80%;
background-color: #CCCCCC;
border-spacing: 0px;
font-size: 10em;
letter-spacing: 0.25em;
text-align: left;
}