c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Css

Reset all styles-CSS examples

| | Css

Use an attribute to reset all styles to their default values. This does not affect the direction and unicode-bidiattributes.

HTML CODE:

<div class="reset-all-styles">
    <h4>Title</h4>
    <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>

CSS CODE:

.reset-all-styles {
  all: initial;
}

 

Description

This all property allows you to reset all styles (inherited or not inherited) to their default values.