Skip to main content
Inspiring
Mar 13, 2020 12:00 PM UTC
Answered

Why isn't my image centring?

Before i adjusted the width of the image, it was centered, however it was also the full width of the page, which stretched the image. After the i adjust the width, it sits to the left of the page and i don't know why? Can someone help me to center it please?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    osgood_Correct answer
    Legend
    Mar 13, 2020 12:22 PM UTC

    add - align-items: center; to your '.centered-content' css selector. That is what you need if you set the flex-direction to column and you wont need to add the 'text-align: center'

     

     

    2 replies

    osgood_Correct answer
    Legend
    Mar 13, 2020 12:22 PM UTC

    add - align-items: center; to your '.centered-content' css selector. That is what you need if you set the flex-direction to column and you wont need to add the 'text-align: center'

     

     

    Translate
    Inspiring
    Mar 13, 2020 3:03 PM UTC

    AHHHHHHH THANK YOU SO MUCH!!!!!!!

    Translate