I have a problem in that I'm trying to show an <aside>
text inline when a mouse is hovering over a defined keyword. The way I planned to do this to utilize the <span>
, which wraps the <aside>
and then I could use CSS selectors like #main > article > .inline-aside, aside { display: none; }
to choose the descendant <aside>
elements within these special purpose regions.
I seem to be able to hide the contents, but not to get them back. The problem might be, I'm a total CSS rookie, the display: none
somehow removes the element. Is there a way to accomplish this using CSS alone?
Here are the relevant pieces and I have a fuller Fiddle at https://jsfiddle.net/Veksi/z0d5j1xb/.
<article id="faq-section-general" class="tab-content">
<h1>General</h1>
<p>The four Byzantine <span class="inline-aside">generals.<aside>General inline aside.</aside></span></p>
<p>Some more general text.</p>
</article>