Я пытаюсь понять, как сделать так, чтобы левый столбец занимал 100 % высоты в двухколоночном макете с липким нижним колонтитулом. Цель состоит в том, чтобы липкий нижний колонтитул не застрял, пока не упирается в содержимое левого столбца. Я использую метод отрицательного поля для липкого нижнего колонтитула.
Пожалуйста, посмотрите на JSFiddle ниже.
http://jsfiddle.net/x11joex11/2Ljgze37/8/
CSS:
/* Set Defaults */
* {height:100%;margin:0;}
.wrapper{
background-color:rgba(0,0,0,0.25);
min-height: 100%;
height: auto !important;
height: 100%;
margin:0 auto -50px;
}
.clear {clear:both}
/* Create Header */
.header{
height:50px;
background-color:rgba(0,255,0,0.5);
}
/* Content */
.content{
height:100%;
padding-right:100px;
}
/* Left Column */
.leftside{
float:left;
height:100%;
width:100px;
background-color:rgba(0,0,255,0.5);
}
/*Right Column*/
.rightside{
float:right;
margin: 0 -100px 0 0; width: 100%;
background-color:rgba(255,0,255,0.5);
}
.push{
height:50px;
}
.stickyfooter{
height:50px;
background-color:rgba(255,0,0,0.75);
}
HTML:
<div class="wrapper">
<div class="header">Header</div>
<div class="content">
<div class="leftside">
Left Menu<br/><br/>
Home<br/><br/>
Page #1<br/><br/>
Page #2<br/><br/>
Page #3<br/><br/>
</div>
<div class="rightside">
Right Content (lorem ipsum forgot the rest)
(lorem ipsum forgot the rest)(lorem ipsum forgot the rest)
(lorem ipsum forgot the rest)(lorem ipsum forgot the rest)
(lorem ipsum forgot the rest)(lorem ipsum forgot the rest)
</div>
<div class="clear"></div>
<div class="push"></div>
</div>
</div>
<div class="stickyfooter">Footer</div>