I have a container-fluid with col-lg-2
for left menu options and col-lg-10
for content sections.
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container-fluid>
<div class="row">
<div class="col-lg-2">
<ul>
<li>one</li>
<li>two</li>
</ul>
</div>
<div class="col-lg-10>
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
This works perfect for small and medium screen but doesn't work for large screen i.e. min-width: 1200px. In small and medium screen the col-lg-2
and col-lg-10
are two rows up and down. But for bigger screens, these are two columns and the width goes beyond the screen.
Any help is appreciated. Thanks