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:
- $('#content img[style*="float:left"]).css({
- 'clear' : 'left',
- 'margin': '0px 20px 10px 0px'
- });
in chrome, mozilla and not-IE browser the selector with (: and/or ;) works but in IE doesn't work. Is there a solution?