+ 3

Check this code out.Have been trying to put the second image to the center but instead it goes to the left. What should I do?

https://code.sololearn.com/W15qd4mANXr0/?ref=app

28th Jul 2020, 12:51 AM
finney osajere
13 Answers
+ 6
If you want like the above result then just do this <table><tr><td>Birth Name</td><td>Finney<br>Osajere</td></tr></table>
28th Jul 2020, 1:53 AM
Prabhat Ranjan
Prabhat Ranjan - avatar
+ 6
Hey buddy just inclose the image tag inside center tag. I tried this on your code and it was working fine Something like this <center><img src="xyz"/></center>
28th Jul 2020, 1:03 AM
Prabhat Ranjan
Prabhat Ranjan - avatar
+ 5
You mean something like this? Birth name_____Finney Osajere
28th Jul 2020, 1:51 AM
Prabhat Ranjan
Prabhat Ranjan - avatar
+ 4
To create space between any two things in html, use &nbsp if 1 times you write &nbsp it creates one space and for 2 space write it 2 times like this, &nbsp&nbsp and so on
28th Jul 2020, 1:31 AM
Prabhat Ranjan
Prabhat Ranjan - avatar
+ 2
Get rid of align="center" in the <img/> element, and surround it with a <div align="center"> instead. E.g. <div align="center"> <img src="image.png" alt="image"/> </div>
28th Jul 2020, 1:05 AM
Rowsej
Rowsej - avatar
+ 2
Thanks Rowsej and Prabhat Ranjan. The problem has been corrected.
28th Jul 2020, 1:20 AM
finney osajere
+ 2
https://code.sololearn.com/WHyxwc91SVoM/?ref=app I have modified your code . I guess this is what you wanted it to look like
29th Jul 2020, 6:16 PM
Roopam Maurya
Roopam Maurya - avatar
+ 1
Another problem am have is to create space from Birth name_____Finney Osajere Born March_____06,2002 ........ What should I do?
28th Jul 2020, 1:27 AM
finney osajere
0
Thanks
28th Jul 2020, 1:37 AM
finney osajere
0
Another problem is that am trying to put Osajere directly under Finney starting from F How will I go about it
28th Jul 2020, 1:38 AM
finney osajere
0
Yes
28th Jul 2020, 1:52 AM
finney osajere
0
Okk. Thanks
28th Jul 2020, 1:55 AM
finney osajere
0
Input the image tag inside the centre tag. Like this <center> <img src="img/.jpg" style="width: 50%; height: 50%"> </center>
29th Jul 2020, 1:09 PM
Obanla Samuel
Obanla Samuel - avatar