New course! Every coder should learn Generative AI!
Try a free lesson0
Html. Image centering ??
Hey guys. This code here is not centering my image to the middle of the page. It's just stuck on the left hand side and won't move. <img src= "C:\Users\deadl\Pictures\Thailandmap.jpeg.jpg" alt="Map of thailand" style="width:200px; height:300px;" align="middle" usemap="#Thailandmap"> How do I get it to center ? Thanks
4 Answers
+ 4
harry
You can also use
<div align ="center">
<img/>
</div>
+ 2
write your HTML code like this : <center><img></center>
0
Thanks. Doing my computer science at college and It's been a while since I learnt html basics. Taken me ages just to get the code for the image and a background lol