I'm currently working with Bootstrap to design a mobile-first responsive layout. I have set up multiple rows and columns that I adjust based on different screen size categories.
Is there a way to style borders using just Bootstrap classes for the various sizes without having to write my own CSS media queries?
For example, let's say I want to add a border-right to the first column in a row only when it's floated at medium size... Is there a built-in feature that achieves this? Please note that the code below is just an illustration:
<div class="row">
<div class="col-12 col-md-6 border border-top-0 border-right-0 border-bottom-0 border-left-0 border-md-right-1">
<p>Lorem ipsum</p>
</div>
<div class="col-12 col-md-6">
<p>Dolor sit amet</p>
</div>
</div>
I'm also utilizing the maxcdn CSS, so I can't access Sass. Any recommendations or suggestions would be greatly appreciated!