I need to display one letter over another one in a link and want them to be CENTERED. I’ve tried postion: relative and absolute, but it’s impossible to center the letters.
Any ideas? I want them exactly to be one over another, don’t ask me why 🙂
Here’s the code:
<a href="#">
<span>O</span>
<span>B</span>
</a>
All I know is the width of parent link, but have no idea what’s the width of given letters.
Here’s code to play width:
Edit
Here’s an example of how should it look like (it’s not centered and I can’t use negative margins if I won’t know width of these spans):
http://jsfiddle.net/d7Qhq/1/
Something like that?