I want to declare a link without any content, instead I want to use a background image for it. But I can see the background only when I put something between <a></a> tags. How can I solve it?
I want to declare a link without any content, instead I want to use
Share
Make the link a block-level element, and give it a width and height:
Or just use an
<img />inside the<a>instead of using abackground-image.