HTML img align=“middle” doesn't align an image

后端 未结 8 1251
臣服心动
臣服心动 2021-02-07 13:26

I want a image to be centered aligned. Image size is fixed in pixels.

So what I want is like this-

\"1\".

相关标签:
8条回答
  • 2021-02-07 14:00

    You don't need align="center" and float:left. Remove both of these. margin: 0 auto is sufficient.

    0 讨论(0)
  • 2021-02-07 14:04

    just remove float: left and replace align with margin: 0 auto and it will be centered.

    0 讨论(0)
提交回复
热议问题