MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus Stratum 0
(class='prettytable') |
(pre mit long-line-wrap) |
||
Zeile 23: | Zeile 23: | ||
margin-left: inherit; | margin-left: inherit; | ||
margin-right: inherit; | margin-right: inherit; | ||
+ | } | ||
+ | |||
+ | /** siehe zB http://weblogtoolscollection.com/archives/2007/06/16/css-for-code-wrap-long-lines/ */ | ||
+ | pre.wrap { | ||
+ | white-space: pre-wrap; /* css-3 */ | ||
+ | white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ | ||
+ | white-space: -pre-wrap; /* Opera 4-6 */ | ||
+ | white-space: -o-pre-wrap; /* Opera 7 */ | ||
+ | word-wrap: break-word; /* Internet Explorer 5.5+ */ | ||
} | } |
Version vom 24. Mai 2011, 01:09 Uhr
/* CSS an dieser Stelle wirkt sich auf alle Skins aus */
/* Tabellen */
table.prettytable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #aaaaaa solid;
border-collapse: collapse;
}
table.prettytable th, table.prettytable td {
border: 1px solid #8cacbb;
padding: 0.2em;
vertical-align: top;
}
table.prettytable th {
background: #dee7ec;
text-align: left;
}
table.prettytable caption {
margin-left: inherit;
margin-right: inherit;
}
/** siehe zB http://weblogtoolscollection.com/archives/2007/06/16/css-for-code-wrap-long-lines/ */
pre.wrap {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}