Currently, I am working on a project where I need to create a pointer on top of a div, similar to a tooltip.
My initial approach was to try the following:
https://stackblitz.com/edit/angular-ivy-fa72tz
My goal is to achieve the following design:
- I aim to keep the top part of the red div, which is rotated 45 degrees, in red color.
- To make the bottom half of the red div transparent.
- To ensure that the red div aligns perfectly halfway with the top border of the yellow div.
However, I am facing difficulties in implementing this. What could I be missing in my approach?