DE:OSM in Website für Gemeinde/css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 30: | Line 30: | ||
color: #ffffff; |
color: #ffffff; |
||
} |
} |
||
a { |
#header a { |
||
color: #ffff00; |
color: #ffff00; |
||
text-decoration: none; |
text-decoration: none; |
||
} |
} |
||
a:hover { |
#header a:hover { |
||
color: #ffff00; |
color: #ffff00; |
||
text-decoration: underline; |
text-decoration: underline; |
||
Line 52: | Line 52: | ||
width: 96%; |
width: 96%; |
||
padding: 0; margin: 0; |
padding: 0; margin: 0; |
||
color: #000; |
|||
} |
} |
||
Revision as of 21:08, 25 March 2009
Übersicht | HTML-Datei | JS-Code | JS-Funktionen | CSS-Datei | GPX-Dateien | Testanwendung | ToDo-Liste |
Die CSS-Datei definiert vor allem die Grösse der Kartenanzeige, aber auch die Schriftarten etc.
CSS-Datei
html,body {
background-color: #000000;
height: 100%;
width: 100%;
margin: 1%; padding: 0;
font-family: Verdana, Arial;
font-size: 1em;
overflow: hidden;
color: #ffffff;
}
#header a {
color: #ffff00;
text-decoration: none;
}
#header a:hover {
color: #ffff00;
text-decoration: underline;
}
#header {
font-family: Verdana, Arial;
font-size: 1em;
overflow: hidden;
color: #ffffff;
}
#map {
height: 86%;
width: 96%;
padding: 0; margin: 0;
color: #000;
}
#content {
font-size: 1em;
}
#osm {
font-size: 0.7em;
font-style: italic;
margin-bottom: 20px;
}
CSS-Datei kopieren
- kopiere den gesamten Code. Achte darauf, dass du auch das erste und letzte Zeichen kopiert hast.
- füge den Code im Texteditor in eine neue Seite ein
- speichere den Code unter dem Dateinamen "OSM-Karte.css"
- lade die Datei mit dem FTP-Programm auf den Webserver in den passenden Ordner
Falls du einen anderen Ordner- oder Dateinamen wählst, passe die HTML-Datei entsprechend an.