私はこれまであまりにも長い間苦労してきました。
私がやろうとしているのは、1列、3行のテーブルと同じようにフォローを積み重ねることです。推奨される HTML5 ページ構造化メソッドのために、古い HTML および CSS メソッドを放棄しようとしています。
このように...しかし何も重なっていない...
----------------------------
| | header | |
| ------------------ |
| | | |
| | content | |
| | | |
| ------------------ |
| | footer | |
-----------------------------
フッターがコンテンツに重なってしまい、コンテンツがページ自体よりも大きくなります (100% であるため、これは理にかなっています...)。「スティッキーフッター」に関するいくつかの回避策を試しましたが、うまくいかないようです... ゼロからやり直そうと思いました - 何を知っておくべきですか? 私が行方不明であることは明らかですか?
CSS:
header{
background-color: #000000;
height: 200px;
width 1000px;
margin-left:auto;
margin-right:auto;
}
.content{
background-color: #FFFFFF;
height: 100%;
margin-left:auto;
margin-right:auto;
}
footer{
background-color: #000000;
width 1000px;
height: 200px;
margin-left:auto;
margin-right:auto;
}
HTML:
<header>
Header Content
</header>
<div class="content">
Page Content goes here
</div>
<footer>
Footer Content
</footer>