I have a div that contains an h2 and p tag. I am curious if there is a way to remove the styling from the div if the P tag does not exist.
Here is the markup and styling:
<style>
.hotel-header { min-height: 100px; }
</style>
<div class="hotel-header">
<h2>Hotel Name</h2>
<p>Hotel address</p>
</div>
Any assistance or advice would be greatly appreciated.
Thank you in advance!