Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to center an image using text-align center in HTML?

NickFNickF USAMember Posts: 132

Is it possible to center image using text-align:center; style?


  • DavidMDavidM USAMember Posts: 342

    It is not supported by W3C.

    Use the following way: {
        display: block;
        margin-left: auto;
        margin-right: auto;
Sign In or Register to comment.