0
Align problem
div{ text-align : center } But why don't img center ? 🤔🤔🤔🤔🤔 https://code.sololearn.com/W3Q5ac53OCPM/?ref=app
9 Respuestas
+ 3
Shaishab Chandra Shil
See working without center tag
https://code.sololearn.com/WQWySyp5YnZf/?ref=app
+ 2
Shaishab Chandra Shil
You cannot align img directly because align is not an attribute of img tag so you need to put img inside a div or span then you can put img in center.
body #profile {
text-align: center;
}
<body>
<div id = "profile">
<img src = "" />
</div>
</body>
+ 1
Use This In CSS Instead:
input{
text-align: center;
}
Just Replace The Div With The Input
Hope This Helps 🤗
+ 1
But, Your Image Is Already Centered!
Proof: https://i.ibb.co/mcdc6w4/Temp.png
+ 1
Img is centered well
+ 1
Shaishab Chandra Shil
I didn't use center tag. Check again.
0
Sancho Godinho but img don't be centered ??
0
A͢J I try but not work
0
A͢J it's work but you replace center @ div . Then see magic