text-indent doesn't work with anchor tag

后端 未结 4 1046
执笔经年
执笔经年 2021-01-06 01:33

http://jsfiddle.net/corinem/TtPgy/

I\'m using:

Lorem ipsum dolor.

css:

a{text-indent:-         


        
4条回答
  •  执笔经年
    2021-01-06 02:02

    You can only do that with block items.

    Use:

    p,a{
        text-indent: -9999px;
        display:block
    }
    

    Or you can wrap your a tag in a block item and style that instead.

提交回复
热议问题