Last active
January 2, 2016 18:49
-
-
Save NatalieMac/8346698 to your computer and use it in GitHub Desktop.
Step 2: CSS to place text on images
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
span.text-content { | |
background: rgba(0,0,0,0.5); | |
color: white; | |
cursor: pointer; | |
display: table; | |
height: 150px; | |
left: 0; | |
position: absolute; | |
top: 0; | |
width: 150px; | |
} | |
span.text-content span { | |
display: table-cell; | |
text-align: center; | |
vertical-align: middle; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment