Skip to content

Instantly share code, notes, and snippets.

@Poltergeist
Created May 2, 2013 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poltergeist/5505996 to your computer and use it in GitHub Desktop.
Save Poltergeist/5505996 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div{
font-size:1em;
width:180px;
line-height:1em;
max-height:2em;
overflow:hidden;
position:relative;
}
div:after{
position:absolute;
background: #fff;
height:1em;
width:auto;
bottom:0;
right:0;
width:15px;
content:'...';
}
div:hover{
max-height:none;
}
div:hover:after{
display:none;
}
<div>an einem schönen tag sagte einmal ein junger bauer moin was geht</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment