I have a CSS class and I want to make sure that whenever a h2
tag is assigned that class, additional CSS is given to the h2
tag on top of the original class. Here is what I currently have for CSS and HTML but it is currently not rendering out the text-align class.
.aligncenter {
clear: both;
color: #000000
h2{
text-align: center;
}
<div>
<h2 class="aligncenter"> H2 Text that should be black and centered</h2>
</div>