html - Offset text without moving background -


is possible—without adding wrapper element—to offset position of text in html element without causing background shift?

motivation:

i have existing html markup (phpbb) , i'm styling links buttons visibly pushed down when :active (mouse button down). have half of working via background change, want offset text down , right 1 pixel.

existing html markup (cannot changed):

<a href="…"><span></span>hello world</a> 

fiddle showing effect , existing css (which can changed): http://jsfiddle.net/szxpz/1/

edit: can text move right text-indent:1px; margin-right:-1px, still leaves need move text down well.

you should able achieve increasing padding-top , decreasing height 1.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -