Skip to content

Instantly share code, notes, and snippets.

@jensgro
Created February 2, 2012 17:22
Show Gist options
  • Save jensgro/1724672 to your computer and use it in GitHub Desktop.
Save jensgro/1724672 to your computer and use it in GitHub Desktop.
hint-text with a generated arrow
/**
* hint-text with a generated arrow
*/
body {background: #fff; padding: 20px;}
.current {position: relative; padding: 20px; background: #a20000; color: #fff; text-decoration: none; font-size: 22px; font-family: Verdana, sans-serif;}
.current:before{
content: ""; display: block; width: 0; height: 0;
border: 20px solid transparent; border-left: 20px solid #a20000;
position: absolute; right: -30px; top: 15px;
}
<!-- content to be placed inside <body>…</body> -->
<span class="current">
this text could be placed anywhere
</span>
{"view":"split","prefixfree":"","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment