0

I need a code that is something like:

<div style="templateCSS:none">Content that has mysterious WordPress template CSS applied on it</div>

I don't want to override it with another inline style, I just want everything removed.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

0

I suppose you can use the CSS3 keyword initial for every property of the element. Something like this:

HTML

<div class="reset-style">Content that has mysterious WordPress template CSS applied on it</div>

CSS

.reset-style{
    margin : initial;
    margin-bottom : initial;
    margin-left : initial;
    margin-right : initial;
    margin-top : initial;
    /* All the css properties*/
}

Check this answer: Reset/remove CSS styles for element only

Community
  • 1
  • 1
Diego
  • 485
  • 3
  • 8