When a parent element has been set to display:none;
, how can we make just one of its descendants visible?
css:
div: display:none;
html:
<div>
<p id='required'>required</p>
<p>not required</p>
</div>
How can I make p#required
alone to be visible.
Limitation - I will be using this in the stylus browser extension.
You can do this with the
visibility
property but notdisplay
.Example code below