Last active
January 2, 2016 18:58
-
-
Save NatalieMac/8346818 to your computer and use it in GitHub Desktop.
CSS to show text only on hover
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; | |
opacity: 0; | |
} | |
ul.img-list li:hover span.text-content { | |
opacity: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment