Webdesign in Siegen

Gelöst: Footer - Div tags

Fragen zum Thema HTML und CSS können hier gestellt werden

Moderatoren: Basti, Ingo

Gelöst: Footer - Div tags

Beitragvon veNom am 29.03.2006, 10:46

Hi

Ich hab da ein kleines Coding Problem, ich hab da eine ganze Seite in Div tags gemacht, es arbeitet eigentlich alles wudnerbar und sitzt auch richtig in IE und FF... ist schon ein großes wunder *gg* ;)

Mein Problem liegt beim Footer... ich seh ihn einfach nicht, bzw ist er nicht an der stelle wo ich ihn haben möchte.

Hier die HTML
Code: Alles auswählen
<body>
<center><div id="root">

<div id="head"></div>

<div id ="menu">
<div id="ueberuns"><a href="#"></a></div>
<div id="neuigkeiten"><a href="#"></a></div>
<div id="gb"><a href="#"></a></div>
<div id="fanartikel"><a href="#"></a></div>
<div id="sponsoren"><a href="#"></a></div>
<div id="stadion"></div>
</div>

<div id="abstand"></div>

<div id="inhalt">
<div id="leftmenu">Linkes Menü</div>
<div id="content">Inhalt</div>
<div id="rightmenu">Rechtes Menü</div>
<div id="footer">Footer</div>
</div>

</div>


</center>
</body>


und die CSS dazu
Code: Alles auswählen
<style type="text/css">
body {
   margin-top: 0px;
   margin-left: 15px;
   margin-right: 15px;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 10px;
   text-align: center;
}

#root {
   width: 985px;
   text-align:left;
}

#head {
   background-image: url(images/header.png);
   width: 985px;
   height: 122px;
   position:relative;
   top: 0px;
   left: 0px;
}

#menu {
   width: 985px;
   height: 79px;
   position: relative;
   background-color: #132F51;   
}

#ueberuns a{
   background-image: url(images/ueberuns.png);
   width: 146px;
   height: 79px;
   top: 0px;
   left:0px;
   position: absolute;
}

#ueberuns a:hover{
   background-image: url(images/ueberuns_h.png);
   width: 146px;
   height: 79px;
   top: 0px;
   left:0px;
   position: absolute;
}

#neuigkeiten a{
   background-image: url(images/neuigkeiten.png);
   background-repeat: no-repeat;
   width: 129px;
   height: 79px;
   top: 0px;
   left: 146px;
   position: absolute;
}

#neuigkeiten a:hover{
   background-image: url(images/neuigkeiten_h.png);
   background-repeat: no-repeat;
   width: 129px;
   height: 79px;
   top: 0px;
   left: 146px;
   position: absolute;
}

#gb a{
   background-image: url(images/gb.png);
   background-repeat: no-repeat;
   width: 129px;
   height: 79px;
   top: 0px;
   left: 275px;
   position: absolute;
}

#gb a:hover{
   background-image: url(images/gb_h.png);
   background-repeat: no-repeat;
   width: 129px;
   height: 79px;
   top: 0px;
   left: 275px;
   position: absolute;
}

#fanartikel a{
   background-image: url(images/fanartikel.png);
   background-repeat: no-repeat;
   width: 127px;
   height: 79px;
   top: 0px;
   left: 401px;
   position: absolute;
}

#fanartikel a:hover{
   background-image: url(images/fanartikel_h.png);
   background-repeat: no-repeat;
   width: 127px;
   height: 79px;
   top: 0px;
   left: 401px;
   position: absolute;
}

#sponsoren a{
   background-image: url(images/sponsoren.png);
   background-repeat: no-repeat;
   width: 127px;
   height: 79px;
   top: 0px;
   left: 528px;
   position: absolute;
}

#sponsoren a:hover{
   background-image: url(images/sponsoren_h.png);
   background-repeat: no-repeat;
   width: 127px;
   height: 79px;
   top: 0px;
   left: 528px;
   position: absolute;
}

#stadion {
   background-image: url(images/stadion.png);
   background-repeat: no-repeat;
   width: 330px;
   height: 79px;
   top: 0px;
   left: 655px;
   position: absolute;
}

#abstand {
   background-image: url(images/abstand.png);
   background-repeat:no-repeat;
   width: 985px;
   height: 28px;
}

#inhalt {
   width: 985px;
   height: auto;
   position: absolute;
}

#leftmenu {
   width: 188px;
   height: 200px auto;
   background-color: #132F51;
   left: 0px;
   top: 0px;
   position: absolute;
   min-height: 400px;
   color: #FFFFFF;
   font-size: 10px;
   padding-top: 10px;
   padding-bottom: 10px;
   float: left;
}

#content {
   background-color:#FFFFFF;
   width: 608px;
   height: 5auto;
   left: 188px;
   top: 0px;
   position: absolute;
   padding: 10px;
   min-height: 400px;
   float: left;
}

#rightmenu {
   background-color: #132F51;
   width: 170px;
   height: auto;
   left: 815px;
   top: 0px;
   position: absolute;
   min-height: 400px;
   color: #FFFFFF;
   font-size: 10px;
   padding-top: 10px;
   padding-bottom: 10px;
   float: right;
}
#footer {
   background-color: #132F51;
   width: 985px;
   height: 15px;
   color: #FFFFFF;
   font-size: 10px;
   text-align: center;
}
</style>


wie muss ich das machen damit es geht?
Hier zu betrachten
Zuletzt geändert von veNom am 30.03.2006, 16:03, insgesamt 1-mal geändert.
All you get is all you need
Benutzeravatar
veNom
Mitglied
 
Beiträge: 1629
Registriert: 29.12.2005
Wohnort: Wien

Beitragvon Manuel am 29.03.2006, 12:21

Hi!

Füg mal ein Clear: both; in deiner Footerklasse hinzu.

Lg,
Manuel ;-]
Benutzeravatar
Manuel
Site Admin
 
Beiträge: 8922
Registriert: 10.12.2004
Wohnort: Asbach

Beitragvon veNom am 29.03.2006, 12:28

nein das nützt auch nichts ...

hast das was mit class unf id zu tun .. in einen Tutorial hast du mit class gearbeitet und den footer als id ... obwohl der footer keinerlei informationen von wo bekommt.

edit//

ich hätte da noch ein Problem.
ie Seite sollte immer mit vergößern also Menü-Länge mit Inhalt oder rechtes menü mit dem linken damit da immer alles gleich lang ist? wie mach ich das?

nochmal edit // :)
Ich hab da ja 2 Menüs links und rechts... wie kann ich das machen das die immer gleich lang sind (groß) weil der ContentBereich passt sich dem Inhalt an nur gehen die Menüs nicht mit ? hab Höhe 99% momentan definiert 100% auch schon versucht...
All you get is all you need
Benutzeravatar
veNom
Mitglied
 
Beiträge: 1629
Registriert: 29.12.2005
Wohnort: Wien


Zurück zu HTML/CSS

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast