Hello everyone, I am currently working with Bootstrap 4 and have a column containing an image as shown in the code snippet below:
<div className='col-xs-12 col-sm-5 col-md-4 col-lg-3'>
<img src={movie.Poster} className='movie-poster img-fluid mx-auto d-block' />
</div>
I am facing an issue where I would like to center the image when the screen size corresponds to col-xs-12 and col-sm-5, but not center it when the screen size is larger such as col-md-4 or col-lg-3. Is there a way to conditionally apply styles based on certain screen sizes?
Thank you for your help.