1

How do I let the user resize a column in bootstrap?

I made a responsive layout in Bootstrap like this.

<div class='container-fluid'>
  <div class='row'>
    <div class='col-xs-3 app-left-hand-side'>
      <!-- tool bar goes here eventually -->
    </div>
    <div class='col-xs-9'>
      <!-- the main content goes here -->
    </div>
  </div>
</div>

How can I let the client actively resize the columns by dragging along the border in the middle?

dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
  • Consider using jQuery UI with the resizeable feature, you can make the other element resize too in the resize or stop events to ensure everything flows smoothly. http://api.jqueryui.com/resizable/#event-resize – scragar Jun 12 '14 at 17:13

1 Answers1

2

Can't with bootstrap but with javascript you can do as described here:

How to make HTML element resizable using pure javascript?

Or use jquery:

  $(function() {
    $( "#divId" ).resizable();
  });

http://jqueryui.com/resizable/

Community
  • 1
  • 1
Andrew
  • 18,680
  • 13
  • 103
  • 118