Home Forums Porto Template Class to center images

This topic contains 3 replies, has 2 voices, and was last updated by  Support2 3 days, 21 hours ago. This post has been viewed 51 times

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10027985

    tcguide
    Participant

    Hello,

    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:
    http://66.39.62.34/images/plans/1-bayshore-std-sqft.png

    Please advise what class I need to use to center images.



    Template Version: 7.0.0
    #10027989

    Support2
    Keymaster

    Hello,

    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.

    Kind Regards,

    Rodrigo.


    #10028000

    tcguide
    Participant

    Thanks – that’s what I was missing. Works perfectly!


    #10028004

    Support2
    Keymaster

    Hello,

    Great!

    If you need further assistance, feel free to contact us.

    Kind Regards,

    Rodrigo.


Viewing 4 posts - 1 through 4 (of 4 total)