100%の高さと粘着性のあるフッターに関するチュートリアルはほとんど見つかりませんでした。ただし、100%の高さの右側のサイドバーを実装することはできません。サイドバーの高さは、100%に設定されていても、サイドバー内のコンテンツに関連しているようです。何か案は?
これが私のhtmlです
<body>
<div id="container">
<div id="header">
</div>
<div id="wrap">
<div id="sidebar-right">
<div id="menu">
lorem ipsum
</div>
</div>
<div id="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus adipiscing, nunc quis vehicula vehicula, mi nunc tempor lorem, nec congue augue neque vitae augue.
</div>
<div class="push"></div>
</div>
<div class="footer">
</div>
</body>
そしてCSS
html, body{margin: 0; padding: 0; height: 100%;}
#sidebar-right{
background: #ccc;
float: right;
height: 100%;
width: 300px;
border-left: 2px #fff solid;
}
#container{
height: auto !important;
margin: 0 auto -142px;
min-height: 100%;
}
#wrap {
height: 100%;
overflow: hidden;
}
#menu {margin: 150px 0 0 50px;}
.footer {
background: none repeat scroll 0 0 #BA6F19;
clear: both;
height: 100px;
position: relative;
}
#header {
background: none repeat scroll 0 0 #BA6F19;
height: 50px;
padding: 20px;
}
#content {
float: right;
margin-top: 100px;
width: 400px;
height: 100%
}
.footer, .push {
height: 142px;
}