Bart Lateur a écrit :
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:after { content: "..." }
But then?
Not too bad for a start. How about
http://yo.dan.free.fr/tmp/bart.html ?
Not exactly pretty, but close to what you describe (in web browsers and
IE7, probably).
But then, what do you *really* want to achieve? Please provide an URL
with an excerpt of real content, not just "this is the text".
[...]
And, is it possible to select a div if you hover over a child element?
That would be a way around it.
To /select/ a div? Again, what do you want to do? (the big picture)
--
Daniel Déchelotte
http://yo.dan.free.fr/