Equilateral triangles can be generated with 1px height divs similar to the technique to make HTML rounded corners. It's more flexible to use script plus CSS. Besides using 1px div, making reiangles with border properties is also a good way.