+ 1

How can u make img to the center of page??

can someone write me the code how to put img to the center of page? do i have to type align="center"to it if it does where should i type inside the tag or outside?? example would be awesome cuz am very newbie with this stuff

17th Sep 2018, 12:58 PM
kevin er
kevin er - avatar
6 Answers
+ 2
center tag is obsoleted in HTML5, might not run in newer browsers. Use Css instead: img { display: block; margin: 0 auto; } https://code.sololearn.com/WErtPVQv02VD/?ref=app
17th Sep 2018, 2:26 PM
CalviŐČ
CalviŐČ - avatar
0
thank you so much :D
17th Sep 2018, 1:20 PM
kevin er
kevin er - avatar
0
so <center> doesnt work anymore??? on newer browser??
17th Sep 2018, 3:40 PM
kevin er
kevin er - avatar