Created
August 12, 2013 15:24
-
-
Save ryanve/6211832 to your computer and use it in GitHub Desktop.
Use this CSS to display the target of jumps in figures. It is designed for use with images wrapped in jump anchors.
This file contains 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
figure[id] > a[href^="#"]:after { | |
content:attr(href); display:table; | |
position:relative; top:-1.4em; bottom:-1.4em; | |
font-weight:bold; text-decoration:none; | |
line-height:1; padding:.2em; margin-bottom:-1.4em; | |
background:#fff; color:#222; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment