@media (min-width:901px) { .toc { display: block; width: 48%; float: right; margin-left: 3%; font-size:95%; line-height: 125%; } .description { display: block; width: 48%; float:left; } td { background-color: lightgreen; } } @media (max-width: 900px) { .testen span { float: left; color:blue; } .toctitle { padding: 1px; } .toc { float: none; background-color: yellow; text-align: left; font-size:95%; line-height: 125%; margin-bottom: 12px; } .wikitable td:nth-child(1) { display: block; text-align: left; padding-left: 1px; } .wikitable td { display: block; text-align:right; padding-left: 25px; } .wikitable th:nth-child(1) { text-align:left; padding-left: 1px; display: block; } .wikitable th { display: block; text-align:right; padding-left: 1px; } span { text-align: left; } }
Vorlage:Styles.css
Aus Securepoint Wiki