Within a div, I am incorporating this specific class:
.successful {
width: 100%;
background-color: #c2f5b2;
border: solid 1px #89bc79;
color: #29ac00;
padding: .5% 1%;
margin: 1% 0;
display: block;
}
The structure of the div is as follows:
<div class="successful"></div>
Even after removing the content within the div, it still displays a green area. My intention is for the entire div to disappear when there is no content inside. I attempted using display=table
within the class which worked in Firefox but not in Chrome. Any assistance would be greatly appreciated.