Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 707 Bytes

reset-all-styles.md

File metadata and controls

29 lines (25 loc) · 707 Bytes
title type tags cover dateModified
Reset all styles
snippet
visual
rocky-beach-2
2020-12-30 15:37:37 +0200

Resets all styles to default values using only one property.

  • Use the all property to reset all styles (inherited or not) to their default values.
  • Note: This will not affect direction and unicode-bidi properties.
<div class="reset-all-styles">
  <h5>Title</h5>
  <p>
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id
    exercitationem nulla qui repellat laborum vitae, molestias tempora velit
    natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?
  </p>
</div>
.reset-all-styles {
  all: initial;
}