I have a tooltip that shows up, but I want the heading and text in it to be different styles.
HTML:
<div class="base">HEADING
<span class="base-hover">
<!-- Different style here -->
This is the text under the heading.
<span>
</div>
CSS:
.base {
width: 100px;
height: 50px;
font-size: 18px;
color: red;
text-align: center;
position: relative;
display: inline-block.
}
.base .base-hover {
visibility: hidden;
right: 30px;
bottom: 10px;
}
.base:hover .base-hover {
visibility: visible;
position: relative;
display: inline-block;
width: 100px;
height: 50px;
padding: 10px 60px;
white-space: pre-line;
text-align: center;
}
Understandably, this only has one style, font color red. I'd like the content to be black, but I can't add any colors without changing everything in the tooltip. If I try to separate the spans with another <span> or <p>, two tooltip boxes come up.
Thank you.