I have the following CSS
.align-headers-desktop-left h1, h2, h3, h4, h5, h6 {
text-align: left;
color: red;
}
.align-headers-desktop-right h1, h2, h3, h4, h5, h6 {
text-align: right;
color: red;
}
.align-headers-desktop-centre h1, h2, h3, h4, h5, h6 {
text-align: center;
color: red;
}
.align-headers-desktop-justify h1, h2, h3, h4, h5, h6 {
text-align: justify;
color: red;
}
In the 1st div the header will align correctly, problem is in the next div the header aligns to whatever the alignment is for the 1st div.
I have tried using !important, but that does not work, I have tried adding div to the front of the class and that did not work
The text will be as follows
<div class="align-headers-desktop-right">
<h1>H1</h1>
</div>
Any help would be appreciated