applying text-indent for multi-line text. JQuery
-
29-04-2021 - |
Pergunta
Text-indent for a multiline text doesn't seem to be working. As shown in the below picture text-indent dosen't seem to apply for the word years:
******(Circled in red)**.
Please advice.
var indent =
{
'margin': '0px',
'padding': '0px',
'text-indent': '30px'
};
$('.HideShow td:nth-child(2)').css(indent);
Thanks in advance.
BB
Solução
Using 'padding-left':'30px'
instead of 'text-indent': '30px'
fixes the issue.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow