Basically, I have a simple div with a h2 and p tag contained within the div and I was wondering if there was a way I could possibly remove the styling on the div if the P did not exist?
markup and styling below.
<style>
.hotel-header { min-height: 100px; }
</style>
<div class="hotel-header">
<h2>Hotel Name</h2>
<p>Hotel address</p>
</div>
any help or tips would be appreciated.
Thanks in advance!
Hotel Name
Hotel address