I have the following code:
<div className="col-lg-6 text-lg-left mt-lg-0 col-md-12 mt-md-3 text-md-center" />
where on large screen devices, I want the div to be text aligned to the left, have no margin-top
On medium screen devices, I want the col to be full width, have margin top of 3rem and be centered. This works great and everything however, on small screen sizes, I also want the rules I have on medium screen sizes to persist as well as on xs screen sizes. However, it doesn't.
So I tried this:
<div className="col-lg-6 text-lg-left mt-lg-0 col-md-12 mt-md-3 text-md-center col-sm-12 mt-sm-3 text-sm-center" />
thinking it would work but it doesn't. I'm not sure what I'm doing wrong. I looked at the documentation and their is a sm and xs classes in the documentation I can use but it's not working on those smaller screen devices.
So my question is how can I persist the rules I have on medium screen devices to small and xs classes? I don't want to write custom medium queries I want to try and stick solely to the bootstrap framework.
Thanks,