侧边栏 100% 高度作为内容和内容 100% 高度作为侧边栏
Sidebars 100% height as content and content 100% height as sidebars
我正在 Wordpress 上构建我的网站,但坚持一件事。
我想要我的侧边栏,左右侧边栏垂直与内容高度相同,即使侧边栏内的内容比中间部分的内容短。
如果侧边栏中有更多内容,我还希望中间部分的垂直内容与侧边栏中的内容高度相同。
将 overflow: hidden;
添加到 .containerdubbel
div
。
.containerdubbel {
position: relative;
padding: 0;
margin-left: auto;
margin-right: auto;
background: url(../Meerwoonruimte/images/achtergrond.png) repeat-y top left;
width: 990px;
min-height: 600px;
height: auto !important;
overflow: hidden;
}
我正在 Wordpress 上构建我的网站,但坚持一件事。
我想要我的侧边栏,左右侧边栏垂直与内容高度相同,即使侧边栏内的内容比中间部分的内容短。
如果侧边栏中有更多内容,我还希望中间部分的垂直内容与侧边栏中的内容高度相同。
将 overflow: hidden;
添加到 .containerdubbel
div
。
.containerdubbel {
position: relative;
padding: 0;
margin-left: auto;
margin-right: auto;
background: url(../Meerwoonruimte/images/achtergrond.png) repeat-y top left;
width: 990px;
min-height: 600px;
height: auto !important;
overflow: hidden;
}