My face when I realized IE doesn’t understand background-position in JS
So, apparently IE wants to be the shitty kid around the block (again) and seems to be bitchy about getting the CSS background-position property values. Because:
$("#navigation").css("background-position"); returns undefined
but:
$("#navigation").css("background-position-x"); returns "0px"
In the light of this, have a small jQuery plug-in, thanks to Dextrose.
-
howardtharp liked this
-
tumblklaat liked this
-
piparkaq posted this