Skip to content

Instantly share code, notes, and snippets.

@svanderbleek
Forked from anonymous/dabblet.css
Created November 2, 2013 20:00
Show Gist options
  • Save svanderbleek/7282869 to your computer and use it in GitHub Desktop.
Save svanderbleek/7282869 to your computer and use it in GitHub Desktop.
Untitled
.text-center-image {
text-align: center;
font-weight: bold;
position: relative;
width: 200px;
height: 200px;
}
.text-center-image img {
opacity: .5
}
.text-center-image div {
position: absolute;
left: 0;
top: 80px;
width: 100%;
text-align: center;
font-weight: bold;
font-size: 30px;
line-height: 40px;
font-family: helvetica;
}
<div class='text-center-image'><img src='http://placekitten.com/200/200'><div>CENTER</div></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