I have an element on our webpage that needs to be removed. When I write the display: none
CSS it removes every element on that page because each element is written with the same class. I need to know what I need to add to the CSS that will remove the one particular element, and not all of them.
Below you will see the code for two elements with the same class, but different href, title names. How do I right that into my CSS to remove just one.
.MYCLASS {
display: none;
}
Will remove all of them, but I need to only remove the first.
<div class="My Class">
<a href="http://*****.net/carrier-information/additional-information/" rel="bookmark" title="additional-information">
Additional Information
</a>
</div>
<div class="My Class">
<a href="http://*****.net/carrier-information/5327-2/" rel="bookmark" title="More Info.">
More Info.
</a>
</div>
How do I remove one, but not the other?