body { font-family: sans-serif; } table.overview { border: 2px solid; text-align: center; } td { border: 1px solid; padding-top: 1em; padding-bottom: 1em; width: 6em; } #container { position: relative; } /* Desktop */ @media(min-width: 1081px) { #container { width: 60%; left: 20%; } } /* Mobile compatibility */ @media (max-width: 1080px) { #container { padding: 1em; } }