当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Div expands when the div next to it expands

问题描述:

I have a menu on my layoutpage (MVC) that is on the left side of the page. To the right I have a container that holds the bodypage.

When the sidemenu expands the body expands too. I want the menu to expand but not the body.

How can I rectify this?

<div id="divLeftMenu">

<ul class="nav nav-pills nav-stacked" id="stacked-menu">

<li>

<a class="nav-container" data-toggle="collapse" data-parent="#stacked-menu" href="#education"><i class="fa fa-graduation-cap"></i>Utbildning<div class="caret-container"><i class="fa fa-caret-down"></i></div></a>

<ul class="nav nav-pills nav-stacked collapse" id="education">

<li data-toggle="collapse" data-parent="#education" href="#education1">

<a class="nav-sub-container">Participants</a>

</li>

</ul>

</div>

<div class="container body-content" id=divBodyContent>

</div>

I want #divLeftMenu to expand but #divBodyContent should not expand.

分享给朋友:
您可能感兴趣的文章:
随机阅读: