I have a div I would like to remove the width and height if the background-image
used on that div did not show
Below is my code for the background image
<div id="loaderimage" style="background-image: url(domain.com/'.str_replace(' ', '%20',$firstImage).'); border-radius:3px;overflow:hidden;min-height:100%;width: 100%;padding-top:50%;box-shadow: background-repeat: no-repeat !important;background-position: center !important;background-size: cover">;
The expected result is to hide/remove div or div width and height if the background image did not return any image