Consider the following shapes:
- The grey area is an outside container. Disregard that.
- The white area is a link (
a
tag). - The red triangular area is another link (
a
tag).
I have created a CSS triangle for the red area using the following code:
.ribbon {
position: absolute;
right: 0;
bottom: 0;
width: 60px;
height: 60px;
border-left: 60px solid transparent;
border-bottom: 60px solid red;
}
The problem is that in the following image, the link doesn't maintain it's boundaries in the red triangle shape. The in green triangle is also clickable :
Question is:
How do I make the red area link to one location, and the white to another, without having the browser count the green area in the second illustration as part of the red area?