width of elements
width of elements
This might be more of a html/css question but I'm not certain, so I'll make this my 1st point of call.
I've added a click event handler to the elements of an unordered list. The problem is it responds to clicking anywhere in the horizontal space, including where the visible text ends. I'd like it to only answer to being clicked on the text itself.
Update: Got the desired effect by making a new class just to insert a span in the contents of the list element and make it 'display: inline'.