I have following html
<div class="popover"> click to popoverpopover</div>
When user mouse hover on div there should be a popover
My css is following
.popover:hover
{
content:"popover";
.popover:before
{
content:'';
position: absolute;
display: block;
position: absolute;
left: 15px;
width: 0;
height: 0;
border: 7px outset transparent;
bottom: -14px;
border-top: 7px solid #555;
}
}
But I just found out that in CSS I can't use class within another class.
Is there a way to achieve what I am trying.