{text-indent : -9999} for image replace not working

后端 未结 6 2300
孤街浪徒
孤街浪徒 2021-02-07 08:39

Any ideas why?

http://jsfiddle.net/FHUb2/

6条回答
  •  伪装坚强ぢ
    2021-02-07 09:05

    In my case text indent was not working on H1 because of :before pseudo tag I used to correct a fixed header positioning problem

    .textpane h1:before, .textpane h2:before, .textpane h3:before {
      display:block;
      content:"";
      height:90px;
      margin:-90px 0 0;
    }
    

    This applied to H1 elements with negative indent hack showed text on top of the images in FF & Opera

提交回复
热议问题