
I have such design element. How to create it on page? My first guess was to create triangle image and add it to right side of my element like this:
.profile-menu :hover
{
background-color: #50BBFF;
background-image: url("/Images/menu-triangle.png") ;
background-position: right center;
background-repeat: no-repeat;
background-position: 145px 15px;
}
But the problem here is that triangle hides after it passes element’s border. z-index doesnt help here. I know that there sure are several ways to achieve that, but cant find the one.
You actually could do this with just background images using CSS3’s multiple background images.
I put an example together yesterday which you can see here. If you know the dimensions of your box you could use this method.
http://jsfiddle.net/spacebeers/T8Yzj/39/
EDIT:
You can also do exactly what you want without ANY images – http://jsfiddle.net/spacebeers/T8Yzj/55/