+ 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!
2 Réponses
+ 8
NO, never use the align attribute on an image.
Use CSS:
element {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
- 3
You can do it with the align attribute. for example:
<img src="example.jpeg" alt="example picture" align="middle">