+ 4

image alignment

<center> ...</center> tag works for aligning the image to the center but if i use <right>...</right> nothing happens.please help?

12th Jun 2018, 7:48 AM
@Alone_Af_
@Alone_Af_ - avatar
3 Respuestas
+ 7
Unfortunately, the <right> tag does not exist in html5, try using <div align = "right"> </ div> or in css "margin-left:value"
12th Jun 2018, 7:53 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 6
.img-align-right { margin-left: calc(100% - 32px); } 32px would be the width of your image
12th Jun 2018, 7:59 AM
MCJEH
MCJEH - avatar
+ 3
thanks Brains,Donna and alexander sokolov for help
12th Jun 2018, 7:56 AM
@Alone_Af_
@Alone_Af_ - avatar