0

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

17th Oct 2018, 2:34 PM
harry
4 odpowiedzi
+ 4
harry You can also use <div align ="center"> <img/> </div>
17th Oct 2018, 3:43 PM
Manual
Manual - avatar
+ 2
write your HTML code like this : <center><img></center>
17th Oct 2018, 3:21 PM
Ahanaf Tahmid
Ahanaf Tahmid - avatar
+ 2
harry Do not forget to select the checkmark, on AHNAF s answer.
17th Oct 2018, 3:44 PM
Manual
Manual - avatar
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
17th Oct 2018, 4:00 PM
harry