Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
Forked from LeaVerou/dabblet.css
Created February 12, 2012 20:41
Show Gist options
  • Save ZeeAgency/1810770 to your computer and use it in GitHub Desktop.
Save ZeeAgency/1810770 to your computer and use it in GitHub Desktop.
TV screen
/**
* TV screen
*/
html { background: white; }
.tv {
position: relative;
width: 200px;
height: 150px;
margin: 100px auto 0;
background: black;
border-radius: 50% / 10%;
color: white;
font:bold 300%/3.2 sans-serif;
text-align: center;
text-indent: .1em;
}
.tv:before {
content: '';
display: block;
position: absolute;
top: 10%; bottom: 10%;
right: -5%; left: -5%;
z-index: -1;
background: inherit;
border-radius: 5% / 50%;
}
<div class="tv">13.3"</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment