Skip to content

Instantly share code, notes, and snippets.

@brego
Forked from anonymous/dabblet.css
Created January 25, 2012 17:38
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 brego/1677514 to your computer and use it in GitHub Desktop.
Save brego/1677514 to your computer and use it in GitHub Desktop.
Overflow test
/**
* Overflow test
*/
#wrap {
background-image: -webkit-linear-gradient(top, #999, #333);
padding: 100px;
font-size: 50px;
color: #222;
text-shadow: -1px -1px 1px #000, 1px 1px 1px rgba(255, 255, 255, .08);
font-weight: bold;
text-transform:uppercase;
}
#one {
padding: 35px;
background: rgba(0,0,0,.75);
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, .25), rgba(0, 0, 0, .50));
border-radius: 35px;
margin: auto;
width: 960px;
overflow: hidden;
-ms-text-overflow: ellipsis;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
}
<div id="wrap">
<div id="one">
lorem ipsum motherfucker, yeah, that's how I roll
</div>
</div>
{"view":"split","prefixfree":"","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment