.page {clear:both;height:30px;margin:20px;overflow:hidden; margin-left:0px;}

.page a {float:left;border:1px solid #ccc;padding:2px 9px;margin:0 3px;line-height:20px; background:#fff; color: #000; display:inline-block; height:20px;}

.page .thisclass { background: #ea6a06; color: #fff;} 
@media screen and (max-width: 640px){
    .page {clear:both;height:30px;margin:20px;overflow:hidden; margin-left:0px;}

    .page a {float:left;border:1px solid #ccc;padding:1px 5px;margin:0 1px;line-height:20px; background:#fff; color: #000; display:inline-block; height:20px;}

    .page .thisclass { background: #ea6a06; color: #fff;} 
}