Rob Drew
6 years ago
5 changed files with 70 additions and 19 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,26 @@
|
||||
/* popup container */ |
||||
.popup { |
||||
position: relative; |
||||
display: inline-block; |
||||
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */ |
||||
} |
||||
|
||||
/* popup text */ |
||||
.popup .popuptext { |
||||
visibility: hidden; |
||||
width: 120px; |
||||
background-color: black; |
||||
color: #fff; |
||||
text-align: center; |
||||
padding: 5px 0; |
||||
border-radius: 6px; |
||||
|
||||
/* Position the popup text - see examples below! */ |
||||
position: absolute; |
||||
z-index: 1; |
||||
} |
||||
|
||||
/* Show the popup text when you mouse over the popup container */ |
||||
.popup:hover .popuptext { |
||||
visibility: visible; |
||||
} |
Loading…
Reference in new issue