I have 2 divs that positioned horizontally (float:left; width:50%;). But i want give them height:500px with overflow:hidden and display expand/coolapse button on bottom. How to create it with jquery ?
<div id="tab-two">
<ul class="nav">
<li class="nav-one"><a href="#featured" class="current">last</a></li>
<li class="nav-two"><a href="#core">popular</a></li>
</ul>
<div class="list-wrap">
<ul id="tabclick">
<li>
***content***
</li>
</ul>
</div>
</div>
<style>
#tab-two {
background: none repeat scroll 0% 0% #FFFFFF;
border-radius: 4px 4px 4px 4px;
border-right: 1px solid #CCCCCC;
margin: 0pt 1% 5px 0pt;
padding: 1px 0pt 0pt 5px;
}
</style>
I don’t see where you have 2 divs in your code that will function as described. I worked this up for you. You should be able to edit it to fit your HTML/CSS tags: