Hi there!
I can’t figure out why Display:none; not hide the div. look at here
CSS
.hidden {
display:none !important;
}
HTML
<div class="hidden" id="thankYou">
<h2>Thank you so much</h2>
</div>
Hi there!
I can’t figure out why Display:none; not hide the div. look at here
CSS
.hidden {
display:none !important;
}
HTML
<div class="hidden" id="thankYou">
<h2>Thank you so much</h2>
</div>
display:none is not inherited, so your h2 is still visible
May I ask you to share the correct code?
I don’t know what’s the correct code, it’s your project ![]()
The div is hidden, the h2 is not hidden because display is not inherithed.