Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Css clear all styles for specific elements

Tags:

css

I have a few stylesheets that beautifully style all my elements within the tag.

I do have one specific that I need to populate with some custom html (from the database).

Is there a way to ignore all styles only within my element? or am I out of luck here.

like image 710
coffeemonitor Avatar asked Aug 21 '26 16:08

coffeemonitor


1 Answers

You can't clear styles, I am taking a shot in the dark here on your question.

But you will have to RESET your styles for a particualar element:

div.reset{
 margin: 0;
 padding: 0;
 etc;
}

for something like:

<div class="reset">something</div>

that way you will reset your styling of that particular element.

like image 183
Jakub Avatar answered Aug 24 '26 11:08

Jakub