Text

Jun 16, 2010
@ 2:16 pm
Permalink
2 notes

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.

  1. piparkaq posted this