When the user clicks on the ellipse, I want the text to be displayed. The following example shows a clean implementation of what I mean using jquery. This example shows expand and collapse, CSS solution
$('.collapse').click( function(){
if( $(this).attr('dataStatus') != "visible" )
{$(this)
.html('{ ' + $(this).attr('dataText') + ' }')
.attr('dataStatus','visible')
}
else
{$(this)
.html('. . .')
.attr('dataStatus','hidden')
}
});
.collapse {
color: black;
text-decoration: none;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Tom <a class="collapse" href="#" dataText="never">. . .</a> runs.
Run codeHide resultI want to achieve the same result without using javascript. (Ultimately, I am trying to find a way to recreate this feature in an in-office email handled by Outlook, but I would be pleased with the simple clean CSS response, even if it could not work in Outlook).
, "visited", "" "". , "" .
- CSS/HTML, ? -, . , , , - Outlook.