-4

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

Catalin MUNTEANU
  • 5,618
  • 2
  • 35
  • 43
Mindaugo
  • 87
  • 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

GreyRoofPigeon
  • 17,833
  • 4
  • 36
  • 59