markus miller
Neues Mitglied
Hallo,
wir bauen gerade eine Hompage und stecken fest. Wir wollen unsere Page fixieren, so das sich das Bild nicht ständig zusammenzieht, wenn wir das Fenster verkleinern. Es soll eine Feste Grösse beibehalten.
Hier ist unser HTML Code:
Und hier ist unser CSS:
Gruss Markus und Daniel
wir bauen gerade eine Hompage und stecken fest. Wir wollen unsere Page fixieren, so das sich das Bild nicht ständig zusammenzieht, wenn wir das Fenster verkleinern. Es soll eine Feste Grösse beibehalten.
Hier ist unser HTML Code:
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Navigation</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<ul id="Navigation">
<li><a href="#Home"><font size="-1">Home</a></font></li>
<li><a href="#Beispiel"><font size="-1">Music</a></font></li>
<li><a href="#Beispiel"><font size="-1">Photos</a></font></li>
<li><a href="#Beispiel"><font size="-1">Videos</a></font></li>
<li><a href="#Beispiel"><font size="-1">Radio</a></font></li>
<li><a href="#Beispiel"><font size="-1">Dj´s</a></font></li>
<li><a href="#Beispiel"><font size="-1">Events</a></font></li>
<li><a href="#Beispiel"><font size="-1">Pinnwand</a></font></li>
</ul>
<ul id="Balkenrechts">
</ul>
<ul id="Balkenlinks">
</ul>
</table>
</table>
</body>
</html>
Und hier ist unser CSS:
HTML:
body {
font: normal 100.01% Arial;
color: white; background-color: #FFFFFF;
}
ul#Navigation {
margin: 0; padding: 0.8em;
text-align: center;
border: 0px solid black;
background-color: #8470FF;
}
ul#Navigation li {
list-style: none;
display: inline;
margin: 0.2em; padding: 0;
}
ul#Navigation a, ul#Navigation span {
padding: 0.1em 1em;
text-decoration: none; font-weight: 300px;
border: 1px solid black;
border-left-color: white; border-top-color: white;
color: white; background-color: #7B68EE;
}
}
ul#Navigation a:hover, ul#Navigation span {
border-color: white;
border-left-color: black; border-top-color: black;
color: white; background-color: 7B68EE;
}
Gruss Markus und Daniel