How can I hide specific ads on my page based on their href
property using CSS? I have looked at solutions for hiding elements based on the exact href
value, but the element on my page is constantly changing every time it loads. Is there a way to hide an element or anchor based on a partial href
value?
Here is the HTML code that I want to hide:
Code:
<div id="union-ad" class="union-banner">
<a href="http://someURL?Dynamic_Id's">
</div>
This is what I have tried so far:
<style type="text/css">
a[href*='someURL']{ display: none }
</style>