-4

Why text indent in <a> works only with display:block? When I leave it inline, text indentation doesn't work

Catalin MUNTEANU
  • 5,558
  • 2
  • 33
  • 42
Mindaugo
  • 75
  • 5

1 Answers1

2

text-indent only works on block level elements, not on inline elements.

Instead use display: inline-block or padding-left on the anchor.

Demo

LinkinTED
  • 17,122
  • 4
  • 31
  • 55