If you look at my 5e Shaped sheet I have tooltips setup. My scss (though should be easy to convert to plain css if you're not using a pre-processor): .sheet-tooltip-position-wrapper,
.sheet-rolltemplate-5eDefault .sheet-tooltip-position-wrapper {
position: absolute;
top: 1px;
right: 1px;
z-index: 99;
}
.sheet-tooltip,
.sheet-rolltemplate-5eDefault .sheet-tooltip {
position: relative;
}
.sheet-tooltip-toggle-text,
.sheet-rolltemplate-5eDefault .sheet-tooltip-toggle-text {
border-radius: 50%;
font-size: 77%;
height: 10px;
width: 10px;
background-color: black;
color: white;
padding: 1px 2px;
font-weight: bold;
}
[class*="sheet-tooltip-content"],
.sheet-rolltemplate-5eDefault [class*="sheet-tooltip-content"] {
z-index: 99;
position: absolute;
color: #FFFFFF;
background-color: #000000;
padding: 4px;
visibility: hidden;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
opacity: 0.9;
width: 260px;
margin-top: -15px;
text-align: left;
&::after {
content: "";
position: absolute;
top: 9px;
margin-top: -8px;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
}
}
.sheet-tooltip-small,
.sheet-rolltemplate-5eDefault .sheet-tooltip-small {
width: 80px;
}
.sheet-tooltip-content-left,
.sheet-rolltemplate-5eDefault .sheet-tooltip-content-left {
right: 100%;
margin-right: 12px;
border-top-left-radius: 4px;
}
.sheet-tooltip-content-right,
.sheet-rolltemplate-5eDefault .sheet-tooltip-content-right {
left: 100%;
margin-left: 12px;
border-top-right-radius: 4px;
}
.sheet-tooltip-content-left::after,
.sheet-rolltemplate-5eDefault .sheet-tooltip-content-left::after {
right: -8px;
border-left: 8px solid #000000;
}
.sheet-tooltip-content-right::after,
.sheet-rolltemplate-5eDefault .sheet-tooltip-content-right::after {
left: -8px;
border-right: 8px solid #000000;
}
.sheet-tooltip:hover [class*="sheet-tooltip-content"],
.sheet-tooltip:focus [class*="sheet-tooltip-content"],
.sheet-rolltemplate-5eDefault .sheet-tooltip:hover [class*="sheet-tooltip-content"],
.sheet-rolltemplate-5eDefault .sheet-tooltip:focus [class*="sheet-tooltip-content"] {
visibility: visible;
z-index: 999;
} Accompanying HTML: <div class="sheet-col sheet-tooltip-position-wrapper">
<div class="sheet-tooltip">
<div class="sheet-tooltip-toggle-text sheet-center">?</div>
<div class="sheet-tooltip-content-left sheet-small-label">TOOLTIP CONTENT</div>
</div>
</div>