Styling Div Arrow Outlines - Making Hollow Triangles
thank you for all the years that I've never had to post a question and simply just searched! Now, I'm trying to draw an arrow with a DIV. Example: http://i.imgur.com/wZBgv.png So f
Solution 1:
jsFiddle Demo: Florescent Green Arrow
I don't think that will work because you're covering something opaque with something else opaque. If you're able to use CSS3, the following might suit your needs:
<html><head><style>.chevron {
position: absolute;
width: 50px;
height: 10px;
top: 20px;
background-color:red;
}
.left
{
left: 0px;
-webkit-transform: rotate(340deg);
-moz-transform: rotate(340deg);
-o-transform: rotate(340deg);
-ms-transform: rotate(340deg);
transform: rotate(340deg);
}
.right
{
left: 43px;
-webkit-transform: rotate(20deg);
-moz-transform: rotate(20deg);
-o-transform: rotate(20deg);
-ms-transform: rotate(20deg);
transform: rotate(20deg);
}
</style></head><body><divclass='chevron left'></div><divclass='chevron right'></div></body></html>
I discovered transforms on this page, which was given in response to this question, which sounds close to yours.
Post a Comment for "Styling Div Arrow Outlines - Making Hollow Triangles"