inline css problem -
i have following script:
http://jsfiddle.net/oshirowanen/8mq7x/1/
which works fine, change external css add background image using inline css methods, stops working, demonstrated here:
http://jsfiddle.net/oshirowanen/8mq7x/
i need part of inline css because html dynamically generated. trying create many generic icons using different images each icon, using generic css external file cause mouse on effect.
why stop working when inline css used add image , how can work?
because elements style
css rule has higher priority other css rules. background
in element style rewriting not default background, :hover
too.
you should rewrite background-image
. example: http://jsfiddle.net/8mq7x/3/
Comments
Post a Comment