+ 6

How to place image in the center, using align="center"?

25th May 2017, 10:04 PM
Илья Карпенко UA
Илья Карпенко UA - avatar
6 Respuestas
+ 21
<div align = "center"> <img src = "path> </div>
25th May 2017, 10:41 PM
Maz
Maz - avatar
+ 2
with css, with your img inside the <figure> figure { margin:auto; width:px; // or percentages } it makes your picture have a margin to the left and the right. don't forget to indicate the width of the figure because it automatically occupy all thé width!
25th May 2017, 11:06 PM
Joan Zaf
Joan Zaf - avatar
+ 2
@Alexandra It won't work
28th May 2017, 8:24 PM
Илья Карпенко UA
Илья Карпенко UA - avatar
+ 1
It isn't necessary to put an image into <div>. You can just write <img src="..." align="center">
28th May 2017, 8:23 PM
Alexandra Tkachenko
Alexandra Tkachenko - avatar
+ 1
@Илья oops, sorry
28th May 2017, 8:38 PM
Alexandra Tkachenko
Alexandra Tkachenko - avatar
0
@Alexandra No problem ;)
28th May 2017, 8:39 PM
Илья Карпенко UA
Илья Карпенко UA - avatar