I am currently facing a requirement where I need the radio buttons to display vertically on smaller screens (col-xs-*) and horizontally on larger screens (col-lg-, col-md- and col-sm-*). Right now, I am using the radio-inline class to make the radio buttons appear horizontally by default.
Fiddler: https://jsfiddle.net/Vimalan/hh9qtbfj/
Code:
<div class="form-horizontal">
<div class="form-group">
<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12 control-label">View</label>
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12">
<label class="radio-inline">
<input type="radio" name="inlineRadioOptions" value="Record / Category" />
Record / Category
</label>
<label class="radio-inline">
<input type="radio" name="inlineRadioOptions" value="Batch" />
Batch
</label>
</div>
</div>
</div>
Question:
I'm wondering how to apply the 'radio-inline' css class only during col-lg-, col-md-, col-sm-* based on media query widths, but not during col-xs-*?