Skip to content

Instantly share code, notes, and snippets.

@ryanve
Created August 12, 2013 15:24
Show Gist options
  • Save ryanve/6211832 to your computer and use it in GitHub Desktop.
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.
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