0
Html images Alignment
how do I align the image to the Centre of the Page. P.s. : I'm a beginner
2 Respuestas
+ 5
Use <div align = 'center' > <img src = 'img.jpg'> </div>
Or you can also use -
<p align = 'center' > <img src = 'abc.jpg'> </p>
Both of them will align the image to Center.
0
add this css class to the image
.image { width:50%; margin: auto; display: block;}
you can add any width to the image and you can use the same method to center divs :)