I am having issues with my Col-xs and my col-md.
So before I continue ill explain my use. Im Trying to create a user Form where they can enter their details and then enter a quantity for a piece of furniture. The furniture section is within a Tab-Content as there are separate sections within a house.
So id like for col-xs to span 2 columns, a column for label and one for the Quantity input, And then ill slowly increase by 2 columns, so sm will display, label, quantity, label quantity, and so on.
The col-sm and col-lg work Perfectly, but the col-xs and the col-md are not working, Its almost as if they are being skiped. Please help.
This is my code...
I am very new to Bootstrap and Web layout, but criticism is welcome.
ps. Please Excuse the Layout issues i cannot figure out why the Code insert is doing this
pps. Check this Similer question For layout example : Unanswered Question
ppss. Here is an image of my Mobile issue....
You were very close in your initial layout. Only issue I saw was you duplicated a couple col-md-*
classes on some of your <div>
elements:
<div class="form-group col-xs-6 col-sm-4 col-md-2col-md-3 col-lg-2"><label>4/S Couch</label></div>
Notice you have col-md-2col-md-3
in there? That's not going to work. Also, on some of your elements, your <label>
's parent has col-md-2
and the <input>
's parent has col-md-2
, while others have col-md-3
and col-md-1
. That's not uniform and causes issues in alignment. I assumed that col-md-3
and col-md-1
was correct (if I'm wrong you can always change it to col-md-2
and col-md-2
) and edited your layout to the following:
<div class="container">
<h3>Houseold Inventory</h3>
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#lounge" data-toggle="tab">Lounge</a></li>
<li><a href="#dinning" data-toggle="tab">Dinning Room</a></li>
<li><a href="#householdKitchen" data-toggle="tab">Kitchen</a></li>
<li><a href="#bed" data-toggle="tab">Bed Room</a></li>
<li><a href="#study" data-toggle="tab">Study</a></li>
<li><a href="#householdGarden" data-toggle="tab">Garden</a></li>
<li><a href="#domestic" data-toggle="tab">Domestic</a></li>
<li><a href="#householdGarage" data-toggle="tab">Garage</a></li>
<li><a href="#householdGym" data-toggle="tab">Gym Equipment</a></li>
<li><a href="#householdMisc" data-toggle="tab">Miscellaneous</a></li>
<li><a href="#householdBoxes" data-toggle="tab">Boxes</a></li>
<li><a href="#householdExtra" data-toggle="tab">Extras</a></li>
</ul> <!-- nav-tabs END-->
<div class="tab-content">
<div class="tab-pane active" id="lounge">
<h4>Lounge</h4>
<form role="form" class="form-inline">
<div class="row">
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Corner Piece</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end corner piece -->
<div class="clearfix visible-xs-block"></div>
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>4/S Couch</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end 4/S Couch -->
<div class="clearfix visible-xs-block"></div>
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>3/S Couch</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end 3/S Couch -->
<div class="clearfix visible-xs-block"></div>
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>2/S Couch</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end 2/S Couch -->
<div class="clearfix visible-xs-block"></div>
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Armchairs</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end armchairs -->
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Recliner Chairs</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end recliner chairs -->
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Riempie Chairs</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end riempie chairs -->
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Sleeper Couch</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end sleeper couch -->
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Coffee Table</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end coffee table -->
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Occ.Table</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end occ table -->
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Hall Stand</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end hall stand -->
<div class="form-group col-xs-6 col-sm-4 col-md-3 col-lg-2"><label>Hat Stand</label></div>
<div class="form-group col-xs-6 col-sm-2 col-md-1 col-lg-1">
<input class="form-control" placeholder="QTY" style="width:60px;" type="text">
</div><!-- end hat stand -->
</div><!--end row-->
</form>
<div>
</div> <!--tab-content end-->
</div> <!--tabbable end-->
<!-- col-sm-6 END-->
</div>
</div>
</div>
See this Bootply Example to see this layout in action (just resize your browser).