Skip to content

Instantly share code, notes, and snippets.

@yoannmoinet
Created January 11, 2013 14:33
Show Gist options
  • Save yoannmoinet/4511073 to your computer and use it in GitHub Desktop.
Save yoannmoinet/4511073 to your computer and use it in GitHub Desktop.
Set css vendor specific.
function setCSS(prop,value,css){
var ar = ["-webkit-","-o-","-moz-","-ms-","-khtml-",""];
if(css === undefined)
{
css = {};
}
for(var i = 0, max = ar.length; i<max; i+=1)
{
css[ar[i]+prop] = value;
}
return css;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment