Skip to content

Instantly share code, notes, and snippets.

@jrrickard
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrrickard/893f4c46c50e17efe3f7 to your computer and use it in GitHub Desktop.
Save jrrickard/893f4c46c50e17efe3f7 to your computer and use it in GitHub Desktop.
Example of unicode arrow
<!DOCTYPE html>
<title>an example</title>
<style type="text/css">
.tooltip {
background: black;
color: gray;
position: fixed;
top: 100px;
left: 100px;
width:200px;
height:100px;
}
.tooltip:after {
content: "\25BC"; /* this is the symbol */
font-size: 30px; /* this controls size */
text-align: center; /* this controls position, left center or right */
width: 100%; /* how much to use */
position: absolute; /* overall positioning, this puts it at the end */
margin : -1px 0px 0px 0px; /* margin can control fine tuning */
top: 100%; /* put it at the bottom */
left: 0; /* start the very left of the div */
}
}
</style>
</head>
<body>
<div class="tooltip">
This is a tooltup window
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment