[英]Css sidebar height 100% in foundation
I'm using the grid system in the foundation framework , with a sidebar and content area. 我在基础框架中使用带有边栏和内容区域的网格系统。 I want to extend the height of the sidebar navigation based on the content of main part ( small-10
): 我想根据主要部分( small-10
)的内容来扩展侧边栏导航的高度:
<div class="row">
<div class="small-2 columns">
<div id="side-nav">
<ul>
...
</ul>
</div>
</div>
<div class="small-10 columns">
@RenderBody()
</div>
</div>
I've tried: 我试过了:
#side-nav
{
height:100%;
background:#f0f0f0;
}
如果您希望两列的高度相同,则在这种情况下,我仍将使用<table>
的
set css 设置CSS
#side-nav
{
display:block;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.