I'm trying to hide a button when the link within the button is not found or the link value is "none". With the code below I'm seeing the text and link have been removed but part of the button is still visible. This is what I'm seeing
div.trailer button a[href="None"] {
display: none;
}
div.trailer button a[href^="http:"] {
display: block;
}
<div class="trailer"><button type="button" class="btn btn-primary"><a href="none" target=”_blank”><i class="fab fa-youtube"></i>Trailer</a></button></div>
I dont know where I'm going wrong.