I am looking to design a link with inner shadows on both sides (left and right) while keeping the rest of the item transparent.
My desired effect is illustrated below:
The challenge I'm facing is that I do not know the exact width of my link in advance. Therefore, I need a solution similar to the following:
background: url(left-shadow) left center;
background: url(right-shadow) right center;
However, this needs to apply to a single element only. Any suggestions on how to implement this?
I understand that using multiple backgrounds is a possible solution, but it may not be compatible with IE8:
http://www.quirksmode.org/css/multiple_backgrounds.html
Is there an alternative method that would work with at least IE8 (and preferably also with IE7)?