Stuck in CSS, what can I do!


I hope you can the image. My question is why isn’t the .image class selector taking in the css command and aligning the image to the center?

instead of targeting the image class directly, put the image inside of a div then target that div with the same text-align: center
I believe that will work for you.
(It seems that text-align: center only works on “block level elements” and image is not that)

examples of block-level elements

Thank you very much.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.