「スティッキーフッター」の作成に関して見つけられるすべてのものをグーグルで検索して読みましたが、何らかの理由で正しく機能させることができません。html/body div、メイン コンテンツ div、フッター div の CSS コードは次のとおりです。
body, html {
margin-top: 5px;
margin-bottom: 5px;
padding: 0px;
height: 100%;
font-family: Cooper Black, Copperplate Gothic Bold, Britannic Bold, Garamond, Arial;
font-size: 1em;
color: #666666;
background-color: #EDF5FC;}
#main {
position: relative;
top: 380px;
width: 90%;
height:100%;
min-height: 100%;
margin: 0px 5% -20px 5%;
z-index: 10;
padding-top: 0px;
padding-bottom: 20px;
overflow:scroll;}
#footer {
clear:both;
position:fixed;
margin-left:auto;
margin-right:auto;
margin-bottom:0px;
margin-top: -20px; /* negative value of footer height */
width:98%;
height:20px;
padding-top:3px;
background: #0E28B1;
text-align: center;
color: #ffffff;
font-size: .7em;
font-weight:bold;
z-index:1;}
フッター Div がメイン div の外側にあります (サイトのメイン コンテンツはメイン div の内側にあるので、それを閉じてフッター div を配置します)。固定位置と margin-bottom を使用して、下部に貼り付けることができます。 0 ですが、コンテンツのスクロール バーが表示されません。
これはまったく機能していません。私は何を間違っていますか?