Question

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?

Was it helpful?

Solution 3

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

OTHER TIPS

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

<span>&nbsp;</span>

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top