niggel84: Verschiedene Div-Höhen trotz min-height

Hallo zusammen,

ich habe einen Content-Bereich in meiner Seite der eine min. Höhe hat.
Unter diesem Content Bereich ist der Footer.
Trotzdem springt der Footer hin und her wenn ich durch die Seiten klicke.
Also muss der Content bereich einmal größer und kleiner werden, obwohl da nur ganz wenig inhalt steht.

Hier mal zwei Beispiele wo der Footer springt
http://www.passionvictims.com/test.html
http://www.passionvictims.com/test2.html

Irgendwas hat das <p> Tag damit zu tun

Hier die CSS

  
body {  
font:12px Verdana, sans-serif;  
background-color:#fff;  
}  
  
html {  
overflow-y: scroll !important;  
}  
  
#content {  
margin: auto;  
margin-top: 26px;  
width: 744px;  
min-height:644px;  
height:auto !important;  
height:644px;  
}  
  
h1 {text-transform: uppercase; clear:both}  
  
#textlinks {text-transform: uppercase; font-size:11px; color: #676769; width:330px}  
#text400 {text-transform: uppercase; font-size:11px; color: #676769; width:400px}  
#textganz {text-transform: uppercase; font-size:11px; color: #676769;}  
#diskolinks {float: left; width: 215px;  margin-right: 75px; text-transform: uppercase; font-size:11px; color: #676769;}  
#diskolinks h5 {font-size:175%}  
#diskolinks img {border: 2px solid #676769}  
#diskorechts {float: left;  text-transform: uppercase; font-size:11px; color: #676769;}  
#media {text-transform: uppercase; font-size:11px; color: #676769; width:200px; float: right }  
  
#footer {font-size:10px; margin: auto; width: 744px;}  
  
a {text-decoration: none;color:#000000;}  
a:hover {color: #676769;}  
  
img {border: 0;}  
  
.navi {float:right; padding-left:2px; margin-top:0px}  
.navi dt {padding:6px; cursor:pointer;}  
.navi a, .navi a:active {color:#d20072; text-decoration:none;}  
.navi a:hover {color: #676769;}  
  
#button {background-color:#fff; text-transform: uppercase; color: #676769;}  
  
#fotos img {border: 1px solid #676769; margin-left:10px}  

Wenn ich das min-height entferne und nur height lasse, dann klappt es.
Aber so wächst der content ja nicht mit, wenn lange texte enthalten sind.

Ich hoffe ihr könnt mir sagen woran es liegen könnte.

Danke :)

  1. Bei mir (neuester FF) sieht das beide Male gleich aus.

    Trotzdem springt der Footer hin und her wenn ich durch die Seiten klicke.

    Was genau heißt das?

    Vielleicht liegts daran dass du verschiedene Angaben zur Höhe machst und sich die Browser dann für irgendeine davon entscheiden müssen?

    Ich muss zum Footer übrigens schon scrollen, obwohl zwischen Text und Footer einiges an Platz ist. Nachdem es ein Footer sein soll, nehm ich an das ist von dir auch so gewollt, damit der Footer nicht mitten im Bild steht sondern wirklich immer unten. Das ist aber eine ziemlich unprofessionell aussehende Methode, pack den lieber mittels CSS ans Ende der Seite.

    1. ja beim FF ist es ok..beim IE8 ist der eine Footer tiefer als der andere.

      Der Footer ist das Impressum, mit dem rosa Streifen und den Buttons.

      Ich muss zum Footer nicht scrollen, liegt wahrscheinlich an der Bildschirmgröße ;)

      Wie gesagt und im CSS zu sehen, hat der Footer ne min-height von 644px
      Damit es alle Browser schnallen gibt es ja diesen CSS-Hack:

      #content {  
      margin: auto;  
      margin-top: 26px;  
      width: 744px;  
      min-height:644px;  
      height:auto !important;  
      height:644px;  
      }  
      
      

      Wie soll ich denn den Footer mittels CSS ans Ende der Seite packen?
      Er ist ja schon unter dem Content-Bereich angesiedelt

      <body>  
      <div id="content">  
      	<div id="banner">  
          	<a href="./index.html"><img src="./img/banner.jpg" width="744px" height="95px" title="Passion Vicitms" alt="Passion Victims"/></a>  
          </div>  
          <dl class="navi">  
              <dt><a href="./links.html" title="LINKS" alt="LINKS">LINKS</a></dt>  
          </dl>  
          <dl class="navi">  
              <dt><a href="./gaestebuch.php" title="GÄSTEBUCH" alt="GÄSTEBUCH">GÄSTEBUCH</a></dt>  
          </dl>  
          <dl class="navi">  
              <dt><a href="./live.html" title="LIVE" alt="LIVE">LIVE</a></dt>  
          </dl>  
          <dl class="navi">  
              <dt><a href="./diskografie.html" title="DISKOGRAFIE" alt="DISKOGRAFIE">DISKOGRAFIE</a></dt>  
          </dl>  
          <dl class="navi">  
              <dt><a href="./fotos.html" title="FOTOS" alt="FOTOS">FOTOS</a></dt>  
          </dl>  
          <dl class="navi">  
              <dt><a href="./media.html" title="MEDIA" alt="MEDIA">MEDIA</a></dt>  
          </dl>  
      	<dl class="navi">  
              <dt><a href="./index.html" title="NEWS" alt="NEWS">NEWS</a></dt>  
          </dl>  
        
      <h1>test</h1>  
      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem 	ne	que sed ipsum. Nam quam nunclandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna.</p>  
        
      </div>  
      <div id="footer">  
          <div align="right" style="margin-bottom: 0"><a href="./impressum.html" title="Impressum" alt="Impressum">Impressum</a></div>  
      	<hr color="#d20072"/>  
          <div align="right">  
              <a href="./kontakt.php"><img src="./img/kontakt.gif" width="31px" height="31px" title="Kontaktiere Passion Victims" alt="Kontaktiere Passion Victims" /></a>  
              <a href="http://www.myspace.com/#" target="_blank"><img src="./img/myspace.gif" width="32px" height="31px" title="Passion Victims auf Myspace" alt="Passion Victims auf Myspace" /></a>  
              <a href="http://www.twitter.com/#" target="_blank"><img src="./img/twitter.gif" width="31px" height="31px" title="Follow Passion Victims auf Twitter" alt="Follow Passion Victims auf Twitter" /></a>  
          </div>  
      </div>  
      </body>  
      
      

      Vielen Dank für deine Hilfe