img[style*="float:left"] { margin: 5px 15px 0px 0px; } img[style*="float:right"] { margin: 5px 0px 0px 15px; }