A Pen by khalifa-chokri on CodePen.
Created
January 19, 2014 17:37
-
-
Save chokri/8508204 to your computer and use it in GitHub Desktop.
A Pen by khalifa-chokri.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="myBox"> | |
<h1>My title</h1> | |
<p> It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.myBox{ | |
font-size: 0.8em; | |
text-align: justify; | |
width: 450px; height: 120px; | |
position: relative; | |
} | |
.myBox h1{ | |
font-family: Arial; | |
font-size: 10em; | |
text-align: center; | |
background-image: url(http://lorempixel.com/450/120); | |
-webkit-background-clip: text; | |
background-clip: text; | |
color: rgba(255,255,255,0); | |
} | |
.myBox p { | |
color: #fff; | |
padding: 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment