JSFiddle - React, Tailwind, and code Playground
by Shiny Joseph
HTML
<div id="popUpDiv" class="popup" style="background: red; border-color: red;">
<p>University</p>
</div>
<button onclick="copyText()">Copy Text</button>
CSS
.popup {
margin: 10px;
padding: 25px;
position: relative;
width:50px;
}
.popup:after {
content: "";
position: absolute;
top: 100%;
left: 20px;
border-top: 20px solid blue;
border-top-color: inherit;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
}
JavaScript
function copyText()
{
alert("Hai");
}