Categories

.NET (1) CSS (5) OOP (1) PHP (2) SQL (5) SQL Server (8) TSQL (1)

Wednesday, September 8, 2010

Reset HTML default properties in CSS

We can initialize all the HTML properties to value zero. Put this piece of code in  your CSS file.

* {
    vertical-align: baseline;
    font-weight: inherit;
    font-family: inherit;
    font-style: inherit;
    font-size: 100%;
    border: 0 none;
    outline: 0;
    padding: 0;
    margin: 0;
 }
body,html
{
    margin:0px;
    padding:0px;
    color:#000;
    background:#CCC;
    background-image:url(../images/background.jpg);
}

No comments:

Post a Comment