Here's a common CSS code for creating a CSS triangle:
display: inline-block;
vertical-align: middle;
content: " ";
border-right: 4px solid transparent;
border-left: 4px solid transparent;
border-top: 6px solid black;
width: 0;
height: 0;
Click here to see it in action
However, this method may result in pixelated edges when viewed in Firefox on OSX.
Fortunately, there is an easy fix specifically for Firefox. Just apply border-style:
border-style: solid dotted none;
But be warned - applying border-style can cause the triangle to break and render as a rectangle in IE10+ (although strangely, it works fine in IE8):
For more information on this issue, check out this blog post (best viewed in IE11):
Learn how to fix the pixelation issue in Firefox
Do you have any suggestions on how to make it work properly in both Firefox and IE10?