JSFiddle - React, Tailwind, and code Playground
by PhilQ
HTML
<br /><br /><br /><br />
<a href="hreghergf" data-seat="1" data-row="1" data-section="A">sdfgf</a>
<br /><br /><br /><br />
<a href="hreghergf" data-seat="2" data-row="1" data-section="A">sdfgf</a>
CSS
*, *:before, *:after {
box-sizing: border-box;
-webkit-box-sizing: border-box;
margin: 0px;
padding: 0px;
}
body {
background-color: #666666;
}
a {
margin-left: 50px;
position: relative;
}
a.seat:hover:before {
content: "Rij: " attr(data-row) " - Stoel: " attr(data-seat) "\ASectie: " attr(data-section);
white-space: pre;
font-family: verdana, sans-serif;
font-size: 11px;
color: #666;
text-align: center;
padding: 8px;
position: absolute;
top: -51px;
left: 50%;
margin-left: -50px;
width: 100px;
height: 40px;
background-color: #fff;
border-radius: 5px;
-webkit-border-radius: 5px;
box-shadow: 0px 0px 6px 0px rgba(0,0,0, 0.8);
}
a.seat:hover:after {
content: "";
position: absolute;
top: -11px;
left: 50%;
margin-left: -6px;
width: 0px;
height: 0px;
border-style: solid;
border-color: transparent;
border-left-width: 6px;
border-right-width: 6px;
border-top: 6px solid #fff;
}