.center {
    margin-left: auto;
    margin-right: auto;
}

*{
    margin:0;
    padding:0;
    }

body, html{height:100%;}

body{ 
    text-align:center;
    }

#main{
    max-width:1280px;
    min-height:100%;
    margin:0 auto;
    position:relative;
    }

footer{
    background:#ccc;
    position:absolute;
    bottom:0;
    width:100%;
    height:0px;
    }