+ 2
Help! , When i put align="center" On my img tag It doesn't shows in the middle
<img src="https://cdn2.iconfinder.com/data/icons/avatars-99/62/avatar-370-456322-512.png" align="center" width="150px" alt="">
5 ответов
+ 4
Let me put this as simply as possible 🙆...Img is an inline tag, and, first it will have to be centered in a container ie. div, before you can use align = "center" on the tag itself.
+ 3
<img src="https://cdn2.iconfinder.com/data/icons/avatars-99/62/avatar-370-456322-512.png" style="display: block; margin-left:auto; margin-right:auto;" width="150px" alt="">
+ 1
/<html>
<head>
<title> Profile </title>
</head>
<body>
<h1 align="center"> Kurei </h1>
<p align="center"> <strong>Editor</strong> </p>
<img src="https://cdn2.iconfinder.com/data/icons/avatars-99/62/avatar-370-456322-512.png" align="center" width="150px" alt="">
</body>
</html>
+ 1
You can put your img tag in the <p> tag and set the text-align: center for <p>🗿