I’ve made a button that expands horizontally: http://jsfiddle.net/timkl/TsDud/
However I’m having a hard time getting my button’s hover-state to work properly.
This is my markup:
<a class="action-button" href="#"><span>Some text</span></a>
I don’t know how to style the hover-effect so that the entire button is “lit” when the user hovers over a part of the button that isn’t covered by the <span>.
This is what I get when I hover over a part of the button that isn’t covered by the <span>:

Check out my example here: http://jsfiddle.net/timkl/TsDud/
jsFiddle DEMO HERE
Change the last lines to:
Ex:
And as I said in the comment above try to avoid to use separate images for your button states.
Use only one image and for ex. on hover just ‘change’ the
background-positionto the part of image representing the state you want!It will save you the “button disappearance” until the new image is loaded.