Attribute Contains Selector [name*=value]

Attribute Contains Selector [name*=value]

i use it in a CMS. In my content page, when I insert a floating element, I use it to set the margin around element according to left or right float in this way:

  1. $('#content img[style*="float:left"]).css({
  2.             'clear' : 'left',
  3.             'margin': '0px 20px 10px 0px'
  4.  });

in chrome, mozilla and not-IE browser the selector with (: and/or ;) works but in IE doesn't work. Is there a solution?