I am trying to remove only one property i.e float
and its value, from an inline style. I would like to start with this:
<div id="first_line_info" style="width:490px; float:right;"> </div>
And make it like this:
<div id="first_line_info" style="width:490px"> </div>
So far I have tried this code:
Regex noInlineStylePattern = new Regex("style=\"[^\"]*\"", RegexOptions.IgnoreCase);
data = noInlineStylePattern.Replace(data, "");
This removes all of the inline styles. How can I just remove the float?