@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) { background-color: moccasin; display: block; background: wheat; } .wikitable td:nth-child(2) { background-color: moccasin; display: block; background: blue; } .wikitable th { display: block; } span { text-align: left; } }
Vorlage:Styles.css
Aus Securepoint Wiki