Is background-image working on <a>
elements as well on all browsers ?
views:
22answers:
1I've actually realized that the <a> element disappear if there is nothing inside. In other words, I just want to use the image as button and I set width and height instead of inserting content. But it only works with div, the <a> disappear if they have nothing inside.
Patrick
2010-09-05 08:10:05
@Patrick: You will have to make the link block-level element first with `display:block` then you should be able to apply width as well as image.
Sarfraz
2010-09-05 08:12:00
perfect, thanks!
Patrick
2010-09-05 08:14:53
@Patrick: Welcome...
Sarfraz
2010-09-05 08:22:37