2011-11-15 3 views
1

私はページの一番下までフッタを広げようと努力していました。私はいくつかの解決策に近づきましたが、それはうまくいかなかったようです。ページのフッターの末尾を延長する

bottomHalfは、ブラウザのページの下に広がるようにしたいと思います。しかし何らかの理由でそれはそれを過ぎて行きます。

どうすればこの問題を解決できますか?私はボディラッパーで100%に高さを入れてbottomHalf

<style type="text/css"> 

html, body { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    background-color: #F0E4C9; 
    font-family:"Times New Roman", Times, serif; 
} 

#wrapper { 
    margin: 0 auto; 
    width: 990px; 
    position: relative; 
    min-height: 100%; 
    height: 100%; 
} 

#topHalf { 
    margin: 0 auto; 
    width: 990px; 
    height: 435px; 
    background-color:#960; 
} 


#navigation { 
    margin: 0 auto; 
    width: 990px; 
    height: 55px; 
    background-color:#0CF; 
} 

#bottomHalf { 
    margin: 0 auto; 
    width: 990px; 
    min-height: 100%; 
    height: 100%; 
    background-color: #4d3c37; 
    color: #FFF; 
} 

</style> 

<div id="wrapper"> 
    <div id="topHalf"></div> 


    <div id="navigation"></div> 


    <div id="bottomHalf">EXTEND THIS TO BOTTOM OF PAGE, GOES TO FAR</div> 

</div> 
+0

あなたは下を配置しようとしたことがあり下の 'で絶対にDIV:0 '? [この質問]を見てください(http://stackoverflow.com/questions/42294/how-do-you-get-the-footer-to-stay-at-the-bottom-of-a-web-page )とそこの答えのいくつか。 –

答えて

1
#bottomHalf { 
margin: 0 auto; 
width: 990px; 
min-height: 100%; 
height: 100%; 
background-color: #4d3c37; 
color: #FFF; 
possition: fixed; 
bottom: 0; 
} 
+0

ええ、私はそれを試みて、私はまだ同じ問題が発生しています。 –

関連する問題