hiding text using “text-indent”

后端 未结 11 2461
北海茫月
北海茫月 2021-02-13 11:26

I\'m trying to hide some text inside an

  • element using CSS by setting text-indent: -999px;.
    For some reason this doesn\'t work when I set
  • 11条回答
    •  半阙折子戏
      2021-02-13 11:38

      I found the best way is to make the text a transparent color:

      color: rgba(0,0,0,0);

      Note: This bug still exists in firefox 12 (text-indent value is ignored on rtl)

    提交回复
    热议问题