私はメディアクエリでこのCSSコードを持っています:
#footer-top {
width:100%;
height:480px;
padding-top:10px;
border-bottom:2px #000000 solid;
}
#footer-left {
width: 290px;
float: left;
padding: 5px 15px;
border-right:1px #000000 solid;
}
#footer-middle {
width: 294px; /* Account for margins + border values */
float: left;
padding: 5px 15px;
margin: 0px 5px 5px 5px;
border-right:1px #000000 solid;
}
#footer-right {
width: 270px;
padding: 5px 15px;
float: left;
}
#footer-bottom {
clear: both;
padding: 0 15px;
}
/* for 980px or less */
@media screen and (max-width: 980px) {
#footer-left {
width: 41%;
padding: 1% 4%;
}
#footer-middle {
width: 41%;
padding: 1% 4%;
margin: 0px 0px 5px 5px;
float: right;
}
#footer-right {
clear: both;
padding: 1% 4%;
width: auto;
float: none;
}
#footer-bottom {
padding: 1% 4%;
}
}
/* for 700px or less */
@media screen and (max-width: 600px) {
#footer-left {
width: auto;
float: none;
}
#footer-middle {
width: auto;
float: none;
margin-left: 0px;
}
#footer-right {
width: auto;
float: none;
}
}
/* for 480px or less */
@media screen and (max-width: 480px) {
#footer-right {
display: none;
}
}
そのため、小さな画面などにフッターをレスポンシブにしようとしています。
ここでフィドルを作成しました: http://jsfiddle.net/VMn7Y/ので、完全な HTML も表示できますが、画面サイズを縮小すると、フッターの右の div がフッターの下部の div の上に表示され始めます。画面が小さくなると、フッター下部の div が押し下げられるようにするにはどうすればよいですか?