Created
February 8, 2012 07:36
-
-
Save sergejmueller/1766524 to your computer and use it in GitHub Desktop.
Tooltip in Form einer Sprechblase auf CSS-Basis
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<style> | |
.tooltip { | |
font: normal 11px/17px sans-serif; | |
color: red; | |
height: 17px; | |
padding: 0 6px; | |
position: absolute; | |
background: #ffcccc; | |
border-radius: 4px; | |
-moz-border-radius: 4px; | |
-webkit-border-radius: 4px; | |
} | |
.tooltip:after { | |
top: 17px; | |
right: 8px; | |
width: 0; | |
display: block; | |
content: ""; | |
position: absolute; | |
border-width: 4px 4px 0; | |
border-style: solid; | |
border-color: #ffcccc transparent; | |
} | |
</style> | |
</head> | |
<body> | |
<p class="tooltip"> | |
Bitte das Limit beachten | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment