Skip to content

Instantly share code, notes, and snippets.

@ultim8k
Created March 1, 2013 00:50
Show Gist options
  • Save ultim8k/5061544 to your computer and use it in GitHub Desktop.
Save ultim8k/5061544 to your computer and use it in GitHub Desktop.
Selected elements :after
/**
* Selected elements :after
*/
pre{
position: relative;
padding: 10px 50px 10px 10px;
border-radius:10px;
background-color: #2f2d2a;
border: 2px solid #333;
font-size: 12px;
color: white;
}
pre::selection:after{
display: block;
content: "\2318 + C";
position: absolute;
top:50%; right: 10px;
margin-top: -6px;
width: 40px;
height: 12px;
color: white;
}
<pre>Some code to select</pre>
<p>Unfortunatelly it doesen't work as expected</p>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment