Quantcast
Channel: Implement Vertical sliding div using Twitter Bootstrap - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Implement Vertical sliding div using Twitter Bootstrap

$
0
0

I have a basic structure on html like:

<div class="container-fluid"><div class="row-fluid"><div class="span2"><!--Sidebar content--></div><div class="span10"><!--Body content--></div></div></div>

I would like to add a toggle button that will hide/show the sidebar (slide would be vertically).If the sidebar is hidden, I would like the content to use the entire area (which would likely be span12). If the sidebar is shown, everything will be revert back.

My approach would be, I will be toggling the span10 and span12 class of the body content area depending on the state of the sidebar.

Is there a better way to do it?

thanks!


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>