I am struggling with a website that is built on a CMS. The custom pages are generating html code with styling added to the elements individually, rather than through a style sheet.
My issue is that I need to either remove the background-color property from all span elements under any div with the class .page_text or change it to none.
I apologize for the messy block of html below:
<div class="page_text">
<h2 dir="ltr" style="line-height: 1.15; margin-top: 10pt; margin-bottom: 2pt;">
<span style="font-weight: normal;">
<p dir="ltr" style="line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt; display: inline !important;">
<span style="font-size: 15px; font-family: Arial; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">If you’d like to contribute to Trashswag you can submit “reports” in several ways.</span></p></span><br></h2>
The solution I tried using Chrome's inspect element feature was adding a selector like
.page_text h2 span {background-color: none;}
, but unfortunately, it did not work as expected.
Can someone please help me figure how to select and modify all spans within .page_text?