0

Align text to center even with other images in line

I have a text and an image inside a <td> The image has float: right. When I try to give the text text-align: center, it doesn't work. How can I do it?

22nd Mar 2018, 3:24 PM
Manuel 48
Manuel 48 - avatar
3 Answers
+ 1
apply text-align property on <td> instead on the text. it should work
22nd Mar 2018, 4:11 PM
Prateek Narang
Prateek Narang - avatar
+ 1
Si compartes tu codigo te podemos ayudar mejor, desde donde agregas el estilo, como propiedad en el html o con css externo.
22nd Mar 2018, 4:04 PM
Kevin HernĂĄndez
Kevin HernĂĄndez - avatar
+ 1
Example: https://code.sololearn.com/WFJw6DdDK8B4 Indicate to your table the width so that based on those references center your text.
22nd Mar 2018, 4:33 PM
Kevin HernĂĄndez
Kevin HernĂĄndez - avatar