<style>
@media only screen and (max-width:800px) {
.tab {width:400px;}
}
@media (min-width:800px) {
.tab {width:800px;}
}
</style>