[LEFT]HEy Leute,
Ich bin gerade dabei meine eigene Hompage zu programmieren, jedoch bin ich schon am verzweifeln weil ich es nicht hinbekomme die ganze Hompage so zu gestalten das Sie sich der Bildschirmauflösung anpass. Weiters verschiebt sie sich auch wenn ich sie mit dem I-Explorer öffne.
Auserdem möchte ich die Navigation fixieren, also wenn ich runterscrolle soll die Navigation fix bleiben. Ich würde mich sehr freun wenn Ihr mir helfen könnt!
Hier das Html:
<head>
<titel lsdgsdg </titel>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div style="position: absolute; left: 20%; top: 2%px" id="Ebene1">
<img border="0" src="Bild.jpg" width="800" height="70"></div>
<h1 id="k1">rdzthztrhzdh</h1>
<ul id="Navigation">
<li><a href="page2.html">Studien</a></li>
<li><a href="nav_formatieren.htm">Shops</a></li>
<li><a href="">Gästebuch </a></li>
</ul>
<h1 id="k2">hsddhshsghsdhsdg</h1>
<p id="zwei">dfhdhdfhdfhfdhfdhdfhfdhfdhfdh</p>
<h1 id="k3"> sdgdsgsdgsdggddsgds:</h1>
<p id="drei">dfsdfdsdsfsdfdsfdsfdsf </p>
Hier das Css:
body {
background-color: #FFFFF0;
}
#k1
{
font-family: arial, verdana, sans-serif;
font-size: 200%;
color: CC6600;
position: absolute;
top:70px;
left:500px;
width: 380px;
heigh: auto;
border-width: 1%;
border-style: ridge;
border-color: gold;
}
#k2
{ font-family: „Times New Roman“, serif;
font-size: 150%;
color: 000000;
position: relative;
top:-400px;
left:180px;
}
#k3
{ font-family: „Times New Roman“, serif;
font-size: 150%;
color: 000000;
position: relative;
top:-400px;
left:180px;
}
#k4
{ font-family: „Times New Roman“, serif;
font-size: 150%;
color:000000;
position:relative;
top:-12px;
left:180px;
}
#zwei {color:#000000;
position:relative;
top: -410px;
left: 180px;
}
#drei {color:#000000;
position:relative;
top: -400px;
left: 180px}
#vier {color:#000000;
position:relative;
top:-17px;
left:180px;}
ul#Navigation {
width: 11%;
height : 100%;
width: 10%;
margin: 0; padding: 0.8em;
border: 1px solid black;
background-color: goldenrod ;
}
- html ul#Navigation { /* Korrekturen fuer IE 5.x */
width: 11.6em;
w\idth: 10em;
padding-left: 0;
padd\ing-left: 0.8em;
}
ul#Navigation li {
list-style: none;
margin: 0.4em; padding: 0;
}
ul#Navigation a {
display:block;
padding: 0.2em;
text-decoration: none; font-weight: bold;
border: 1px solid black;
border-left-color: white; border-top-color: white;
color: maroon; background-color: #CC9966;
}
- html ul#Navigation a { /* Breitenangaben nur fuer IE */
width: 100%;
w\idth: 8.8em;
}
ul#Navigation a:hover {
border-color: white;
border-left-color: black; border-top-color: black;
color: white; background-color: gray;
}
Mfg
[/LEFT]