Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save gunnarbittersmann/8be137018eb40ba293d3 to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/8be137018eb40ba293d3 to your computer and use it in GitHub Desktop.
Hover me
/**
* Hover me
*/
blockquote
{
font: italic 1.25em/1.5 Georgia, serif;
max-width: 21.5em;
height: 1.5em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
blockquote:hover
{
height: auto;
white-space: normal;
}
blockquote:hover l
{
display: block;
}
blockquote footer
{
margin: 1.25em 0;
font: normal 0.8em "Helvetica Neue", Helvetica, Arial, sans-serif;
}
blockquote footer cite
{
font-style: normal;
}
<!-- willful violation of current HTML spec intentional -->
<blockquote>
<l>The times are tough now, just getting tougher</l>
<l>This old world is rough, it’s just getting rougher</l>
<l>Hover me, come on baby, hover me</l>
<l>Well I’m looking for a lover who will come on in and hover me</l>
<footer>(with apologies to <cite><a href="http://brucespringsteen.net/songs/cover-me">Bruce Springsteen</a></cite>)</footer>
</blockquote>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment