Home › Forums › Porto Template › Class to center images
This topic contains 3 replies, has 2 voices, and was last updated by Support2 2 months, 1 week ago. This post has been viewed 150 times
I’ve applied the class img-fluid
however I’m so far unable to center the image with a class.
I’ve tried to use center-block which has worked on older version templates.
I’ve tried mx-auto.
The sq ft image won’t center for example:
Please advise what class I need to use to center images.
Just add the class d-block:
<img src="images/plans/1-bayshore-std-sqft.png" class="img-fluid mx-auto d-block" alt="">
Please, try that and let us know if you need further assistance.
Thanks – that’s what I was missing. Works perfectly!
If you need further assistance, feel free to contact us.