tags:

views:

22

answers:

1

Is background-image working on <a> elements as well on all browsers ?

A: 

That works for me on FF, Webkit (chrome + safari), IE and Opera.

Sarfraz
I'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
@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
perfect, thanks!
Patrick
@Patrick: Welcome...
Sarfraz