+ 1

Image position

I really need help to set the position of an image! can someone explain for me how it works! I searched some websites but i still dont get it!

2nd Aug 2017, 5:28 PM
Frans
2 Respostas
+ 8
NO, never use the align attribute on an image. Use CSS: element { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
2nd Aug 2017, 10:15 PM
The Coding Sloth
The Coding Sloth - avatar
- 3
You can do it with the align attribute. for example: <img src="example.jpeg" alt="example picture" align="middle">
2nd Aug 2017, 5:35 PM
Bekah
Bekah - avatar