Change direction of negative number with combination of LTR and RTL content

前端 未结 3 338
感动是毒
感动是毒 2021-01-18 06:28

Here is my HTML structure:

3条回答
  •  -上瘾入骨i
    2021-01-18 07:29

    You can use the before pseudo element to add a hyphen.

    q::before { 
      content: "-";
      color: blue;
    }
    
    
    Some quotes, he said.
    

    Will render as

    -Some quotes, he said.
    

提交回复
热议问题