#totop {
    bottom: 5px;
    cursor: pointer;
    display: none;
    font-size: 90%;
    position: fixed;
    right: 5px;
    text-align: center;
    z-index: 100;
}

#totop a {
    color: #000;
    display: block;
    padding: 5px;
    text-decoration: none;
    background: #ccc;
    border: 1px solid #000;
    -moz-border-radius: 3px;
    border-radius: 3px; 
}

#totop a:hover {
    background: none repeat scroll 0 0 #fff;
    color: #000;
    border: 1px solid #000;
}