0

can you align an image and how if u can

css

20th Feb 2019, 2:03 PM
Olufikayomi Jetawo
2 Réponses
+ 4
Worldean you cannot directly align <img>, To do <img> should be in container and parent elements should be aligned <p align=right> <img src=img.png /> </p> //Fikayo Jetawo this question has been asked already, please use search feature next to avoid posting duplicate questions https://www.sololearn.com/discuss/74443/?ref=app https://www.sololearn.com/discuss/352610/?ref=app https://www.sololearn.com/discuss/1024255/?ref=app https://www.sololearn.com/discuss/210974/?ref=app https://www.sololearn.com/discuss/1189992/?ref=app https://www.sololearn.com/discuss/416287/?ref=app https://www.sololearn.com/discuss/747845/?ref=app
20th Feb 2019, 2:37 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Yes you can. I know four ways. 1. align: center or left or right https://www.w3schools.com/css/css_align.asp 2. margin https://www.w3schools.com/css/css_margin.asp 3. position https://www.w3schools.com/css/css_positioning.asp 4. Or use float:left, float:right
20th Feb 2019, 2:33 PM
Worldean
Worldean - avatar