views:

388

answers:

3

I have a span with no text, it looks like an image, it has background and padding. But it doesnot execute onclick event. What to do? Do I need obviously change span to everything else?

A: 

Make sure there's something inside the span, e.g.:

<span>&nbsp;</span>
Jason Cohen
I tried to put   - nothing
dynback.com
A: 

As far as i know if you want its background to be visible you need to set width and height for the span. And at least you need to include a space inside span

<span style='height:20px; width:100px; display:block;'> & n b s p ;</span>
Barbaros Alp
I use span, as inline element.container .header .remove { background: url(gfx/container/remove.png); padding: 1px 8px 2px 8px; margin: 5px; }
dynback.com
A: 

There is no need in spaces or anything, its working great without any changes, that was my bad!

dynback.com