My Drupal theme generates:
<div class="field1">
Field 1
</div>
<div class="field2">
<h3>Field 2</h3>
</div>
The results is that Field 2 has another style.
How can I remove the effects of h3 using CSS?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Better way – remove h3 tag. But sometimes, when you need to reset all styles of parent element – use global attributes, like “font” for “font-size”, “font-style” and so on…
Warning of inheriting paddings, margins borders and background styles – this can be look ugly. For example, when your element has padding and border wiil duplicates for each element:)
http://jsfiddle.net/iegik/q72EM/