0

How can I disable a css file for some <div>? I use MaterializeCSS framework and I have a specific area on my site where I want to use default browser styles.

Jan Kowalski
  • 205
  • 2
  • 7
  • 14

1 Answers1

1

Full cross-browser?
If not, give that div a custom class, and then reset children nodes with all property.
Something like:

p {
  color: red
}
.no-style > * {
  all: unset;
}
 <div class="some-class">
     <p>custom style</p>
 </div>

<div class="no-style">
  <p>default style</p>
</div>

<p>custom style</p>
gmo
  • 8,860
  • 3
  • 40
  • 51