I'm using python 3.4 with the lxml.html library.
I'm trying to remove the border-bottom in-line styling from html elements that I've targeted with a css selector.
Here's a code fragment showing a sample td element and my selector:
html_snippet = lxml.html.fromstring("""<td valign="bottom" colspan="10" align="center" style="background-color:azure; border-bottom:1px solid #000000"><font style="font-family:Times New Roman" size="2">Estimated Future Payouts</font> \n <br/><font style="font-family:Times New Roman" size="2">Under Non-Equity Incentive</font> \n <br/><font style="font-family:Times New Roman" size="2">Plan Awards</font> \n </td>""")
selection = html_snippet.cssselect('td[style*="border-bottom"]')
selection.attrib['style']
>>>>'background-color: azure;border-bottom:1px solid #000000'
What's the proper way to access the in-line style properties so I can remove the border-bottom attribute from any element I target with my selector?