A CSS Reset to Rule Them All

Remember when everyone, and I really mean everyone, was using Eric Meyer’s CSS reset? Those were the days. Sice then, I’ve found a much smaller and simple reset that does just as good a job and actually gives you a little more flexibility.

The below reset utilises the new box-sizing:border-box;, mostly to stop element padding messing things up as you’re coding.

*, *:before, *:after {
    margin:0px;
    padding:0px;
    -webkit-box-sizing:border-box; 
    -moz-box-sizing:border-box; 
    box-sizing:border-box;
    border:0px;
    font-size:100%;
    font:inherit;
    outline:0;
}

Follow IP on Twitter Like IP on Facebook

Advertisement