I find myself in a bit of a conundrum! I want to incorporate cursor: pointer
into my CSS, but the issue is that it's for a triangle shape. If I were to use the following code:
#triangleholder {
width: 100px;
height: 100px;
border: 1px solid red;
}
#triangle {
width: 0;
height: 0;
border-right: 50px solid transparent;
border-left: 50px solid transparent;
border-bottom: 50px solid blue;
cursor: pointer;
}
<div id="triangleholder">
<div id="triangle">
</div>
</div>
The entire area surrounding the triangle responds to the "Cursor" effect, so how can I ensure that only the triangle itself has the hover effect?