MediaWiki:Common.css: Unterschied zwischen den Versionen
Aus wiki.virtual-nation.de
Zur Navigation springenZur Suche springen
(Die Seite wurde neu angelegt: „→Das folgende CSS wird für alle Benutzeroberflächen geladen.: →Inhaltsverzeichnis nach rechts verschieben: #toc { float: left !important; width: 300px; margin: 10 0 10px 20px; →Oben | Rechts | Unten | Links: background: #f9f9f9; padding: 10px; border: 1px solid #aaa; }“) |
Keine Bearbeitungszusammenfassung |
||
| (12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 3: | Zeile 3: | ||
#toc { | #toc { | ||
float: left !important; | float: left !important; | ||
width: 300px; | max-width: 300px; | ||
margin: | margin-right: 25px; | ||
background: #f9f9f9; | background: #f9f9f9; | ||
padding: | padding: 15px; | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
} | |||
/* Set a max-width for article content */ | |||
.mw-body-content { | |||
width: 1200px; /* Adjust as needed */ | |||
margin: 0 auto; /* Centers the content */ | |||
} | |||
/* Limit the width of the main content area and center the text block */ | |||
.mw-content-ltr { | |||
width: 1200px; /* Adjust this as needed */ | |||
margin-left: auto; | |||
margin-right: auto; | |||
padding: 0 15px; /* Adds some spacing on the sides */ | |||
display: block; | |||
text-align: left; /* Keep text aligned left while centering the block */ | |||
} | |||
.mw-body-content { | |||
width: 1600px; /* Adjust this as needed */ | |||
margin-left: auto; | |||
margin-right: auto; | |||
padding: 0 15px; /* Adds some spacing on the sides */ | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
} | } | ||
Aktuelle Version vom 10. Februar 2025, 20:41 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Inhaltsverzeichnis nach rechts verschieben */
#toc {
float: left !important;
max-width: 300px;
margin-right: 25px;
background: #f9f9f9;
padding: 15px;
border: 1px solid #aaa;
}
/* Set a max-width for article content */
.mw-body-content {
width: 1200px; /* Adjust as needed */
margin: 0 auto; /* Centers the content */
}
/* Limit the width of the main content area and center the text block */
.mw-content-ltr {
width: 1200px; /* Adjust this as needed */
margin-left: auto;
margin-right: auto;
padding: 0 15px; /* Adds some spacing on the sides */
display: block;
text-align: left; /* Keep text aligned left while centering the block */
}
.mw-body-content {
width: 1600px; /* Adjust this as needed */
margin-left: auto;
margin-right: auto;
padding: 0 15px; /* Adds some spacing on the sides */
display: flex;
flex-direction: column;
align-items: center;
}