+ 1

Where do i put the align attribute in the img tag

3rd Sep 2017, 7:11 PM
Stephen Asmah
Stephen Asmah - avatar
4 Respuestas
3rd Sep 2017, 7:14 PM
Dapper Mink
Dapper Mink - avatar
+ 4
@Sergio Araya Villalobos: the css property name for alignement is 'text-align' and not 'align' ;P @Stephen Asmah: check again the thread linked in the first answer, I've posted a new answer ^^
4th Sep 2017, 7:16 AM
visph
visph - avatar
+ 3
align is no more used.. for styling your html use css.. but in html u can enclose your image in a block element and then can use the align attribute to the block element. ex: <p align="center"><img src="image_name.jpg"></p>
3rd Sep 2017, 7:15 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
better use css for styling html, it will make your code easier to maintain. img{ align:center; }
3rd Sep 2017, 8:26 PM
Sergio Araya Villalobos
Sergio Araya Villalobos - avatar