applying text-indent for multi-line text. JQuery
-
29-04-2021 - |
문제
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
해결책
Using 'padding-left':'30px'
instead of 'text-indent': '30px'
fixes the issue.
제휴하지 않습니다 StackOverflow