Benutzer:Tequila/Sandkasten: Unterschied zwischen den Versionen

Aus AntamarWiki
Wechseln zu: Navigation, Suche
K
K
Zeile 1: Zeile 1:
<div style="float:right; width:250px; background-color:#F4E6D2; border:1px solid #000; border-width:0 1px 1px 1px;">
+
<div style="float:right; width:250px; background-color:#F4E6D2; border:1px solid #000; border-width:0 1px 1px 1px; margin:0px 0px 6px 6px;">
 
<div style="text-align:center; font-size:120%; font-weight:bold;  border-top:1px solid #000; padding:0.4em;">Benutzer:Tequila/Sandkasten<br /><span style="font-size:90%; font-weight:normal;">Ein Beispieluntertitel</span></div>
 
<div style="text-align:center; font-size:120%; font-weight:bold;  border-top:1px solid #000; padding:0.4em;">Benutzer:Tequila/Sandkasten<br /><span style="font-size:90%; font-weight:normal;">Ein Beispieluntertitel</span></div>
 
<div style="text-align:center; padding:6px 0px; border-top:1px solid #000; background-color:#FFF;">[[Bild:Leerwappen.png|150px]]<br /><span style="font-size:80%; font-weight:bold;">[http://wiki.antamar-community.de/index.php?title=Spezial:Hochladen&wpDestFile=Wappen_{{PAGENAMEE}}.png Wappen hochladen]</span></div>
 
<div style="text-align:center; padding:6px 0px; border-top:1px solid #000; background-color:#FFF;">[[Bild:Leerwappen.png|150px]]<br /><span style="font-size:80%; font-weight:bold;">[http://wiki.antamar-community.de/index.php?title=Spezial:Hochladen&wpDestFile=Wappen_{{PAGENAMEE}}.png Wappen hochladen]</span></div>
Zeile 23: Zeile 23:
 
   border: 1px solid #000;
 
   border: 1px solid #000;
 
   border-width: 0 1px 1px 1px;
 
   border-width: 0 1px 1px 1px;
   margin-left:6px;
+
   margin: 0px 0px 6px 6px;
  margin-bottom:6px;
 
 
}
 
}
  

Version vom 1. März 2009, 22:22 Uhr

Benutzer:Tequila/Sandkasten
Ein Beispieluntertitel
Übersicht
Fläche
Unbekannt über mehrere Zeilen

Einwohner
Unbekannt

Marktrecht
Unbekannt

Hafenstadt
Unbekannt

Zugehörigkeit
Kontinent
Unbekannt

Kultur
Unbekannt

Land
Unbekannt

Ich versuche hier die Infoboxen anstatt durch Tabellen durch div-Boxen und CSS-Formatierungen auszudrücken. Funktioniert das richtig, so ist das valider und sollte auch Serverlast sparen, da die meisten Infos aus der zentralen CSS-Datei (hier) kommen. Außerdem erlaubt es das leichte modifizieren sämtlicher Infoboxen.

Im folgenden findet sich ein möglicher Eintrag in die CSS-Datei, darunter befindet sich die Stadtboxvorlage mit div-Boxen und den CSS-Klassen. Da diese noch nicht existent sind sieht es derzeit etwas minimalistisch aus

.Infobox {
  float: right;
  width: 250px;
  border: 1px solid #000;
  border-width: 0 1px 1px 1px;
  margin: 0px 0px 6px 6px;
}

.InfoboxTitel {
  text-align: center;
  font-size: 120%;
  font-weight: bold;
  border-top: 1px solid #000;
  padding: 0.4em;
}

.InfoboxTitel span {
 font-size: 90%;
 font-weight: normal;
}

.InfoboxAbschnitt {
  text-align: center;
  font-weight: bold;
  padding: 0.4em;
  border-top: 1px solid #000;
}

.InfoboxZeileL {
  font-weight: bold;
  width: 88px;
  padding: 6px;
  float: left;
  border-top: 1px solid #000;
}

.InfoboxZeileR {
  padding: 6px;
  float: right;
  text-align: left;
  width: 137px;
  background-color: #fff;
  border: 1px solid #000;
  border-width: 1px 0 0 1px;
}

.InfoboxBild {
  text-align: center;
  padding: 6px 0px;
  background-color: #fff;
  border-top: 1px solid #000;  
}

.InfoboxBild span {
  font-size: 80%;
  font-weight: bold;
}
{{{name}}}
Übersicht
Fläche
Unbekannt

Einwohner
Unbekannt

Marktrecht
Unbekannt

Hafenstadt
Unbekannt

Zugehörigkeit

Kontinent
Unbekannt

Kultur
Unbekannt
Land
Unbekannt