I use some script to hide div.product-details when empty:
The problem is that div.product-list has a margin-bottom of 50px;
Although 'empty' the script above does not work for the div.product-list
How may I apply a style to the div.product-list when all it contains is empty, hidden divs?
Thank you!
https://www.graphicz.gb.net/sv2relea...-Earrings.html
Code:
<script> $("div.product-details").filter(function(){ return $(this).text().trim() == "" }).remove(); </script>
Code:
.product-details:empty { display: none!Important; width:0; margin:0; padding:0; border:0; }
Although 'empty' the script above does not work for the div.product-list
How may I apply a style to the div.product-list when all it contains is empty, hidden divs?
Thank you!
https://www.graphicz.gb.net/sv2relea...-Earrings.html
Comment