Top navbar with left-side slide-in navbar in Bootstrap 3 -
i'm trying design site using bootstrap 3 top navbar , left side navbar slides in on demand. i'm not sure if should using off-campus slides in, or using collapse. i've tried using collapse , here's i've got far:
http://www.bootply.com/kuyl9617fc
click reports->toggle report data 1 toggle slide effect. there's things wrong it.
- it slides down top. i'd slide in left.
- my "main content here" text should appear right 'lorem ipsum' content in pic below, not below slide in content. ideally i'd "main content here" pushed right , centered in remaining area of page.
please note, i've seen plenty of examples on web of slide in navbars side , reason i'm not copying examples, because slide in content fills page top bottom , pushes side top navbar well. i'm trying avoid this. it's important slide in content appear below top navbar in mockup.
ultimately i'm trying achieve looks this:
where clicking reports @ top opens drop down menu users select category. slides in list of sub-categories on left hand side , pushes 'lorem ipsum' content right. mockup not exact: says "local catalog maintenance" i'd included within sidebar, kind of brand maybe (and i'd shrink text fit appropriately).
thanks in advance help.
edit: changed bootply link incorporate siggyf's correction. moved id="collapseexample" row div above <div class="col-sm-3" below it.
regarding first question. collapsing animation defined in stylesheet. fixed animate height attribute:
.collapsing { position: relative; height: 0; overflow: hidden; @include transition-property(height, visibility); @include transition-duration(.35s); @include transition-timing-function(ease); } if want change animation, can transition width property instead. how implement depends on if use sass, less or css version of bootstrap.
regarding second question. there's div out of order on line 36. try changing container to:
<div class="container"> <div class="row" id="collapseexample"> <div class="col-sm-3" id="sidebar"> <ul class="nav nav-sidebar"> <li class="active"><a href="#">overview</a></li> <li><a href="#">data</a></li> <li><a href="#">analytics</a></li> <li><a href="#">export</a></li> </ul> </div> <!-- there div here --> <div class="col-sm-6"> main content here </div> <div class="col-sm-3"> </div> <!-- , it's here --> </div> </div><!-- /.container --> 
Comments
Post a Comment