Anchor tag doesnt resize automatically depending on the content, see the following example:
I know I can use display inline or display inline-block, but I need that the anchor tag automatically sets its width depending of the inner html size (which is text in this case).
Thanks for help!
Use float:left/right (if you can) and clear:both on following item, or
use inline-block but remove all whitespaces and returns, because inline-block displays all the spaces in the inner HTML
is ok, but also
Note I have removed all returns and spaces inside the a tag
Float:
http://jsfiddle.net/XmnnY/18/
InlineBlock:
http://jsfiddle.net/XmnnY/16/