I'd like to replace the text content of a subdiv by "...", except when
the mouse is hovering either above it, or above another subdiv of the
same parent. Something like:
<div class="parent">
<span class="name"><a href="#">Name</a></span>:
<span class="message" >This is the text</span>
</div>
div.parent span.message { display: none }
div.parent:afte r { content: "..." }
But then? Ideally I'd like the original message to become visible if the
mouse hovers over the three dots, but I don't think that's possible...
I'd settle for making it visible if it hovers over the name.
I can't make either of these work.
Help?
And, is it possible to select a div if you hover over a child element?
That would be a way around it.
--
Bart.
the mouse is hovering either above it, or above another subdiv of the
same parent. Something like:
<div class="parent">
<span class="name"><a href="#">Name</a></span>:
<span class="message" >This is the text</span>
</div>
div.parent span.message { display: none }
div.parent:afte r { content: "..." }
But then? Ideally I'd like the original message to become visible if the
mouse hovers over the three dots, but I don't think that's possible...
I'd settle for making it visible if it hovers over the name.
I can't make either of these work.
Help?
And, is it possible to select a div if you hover over a child element?
That would be a way around it.
--
Bart.
Comment