@media all and (max-width: 720px) { .tocleft { width: 100% !important; /* override inline width */ } } @media all and (min-width: 720px) { .tocleft { float: left; clear: left; width: auto; margin: 0 1em 0.5em 0; } .tocleft-clear-both { clear: both; } .tocleft-clear-none { clear: none; } }