Why text indent in <a> works only with display:block? When I leave it inline, text indentation doesn't work
Asked
Active
Viewed 102 times
-4
Catalin MUNTEANU
- 5,558
- 2
- 33
- 42
Mindaugo
- 75
- 5
-
3Um, because that's what the spec says it should do? http://www.w3.org/TR/CSS2/text.html#indentation-prop – j08691 Mar 20 '15 at 15:23
-
Certain CSS properties don't work with inline elements. `` is an inline element. When you set to block, it's not inline anymore – Rob Scott Mar 20 '15 at 15:23
-
Possible duplicate - http://stackoverflow.com/questions/7723468/text-indent-9999-for-image-replace-not-working – Paulie_D Mar 20 '15 at 15:23
-
@j08691 you crack me up. just as sarcastic as I am haha – Rob Scott Mar 20 '15 at 15:24