/ Published in: CSS
URL: http://davidwalsh.name/css-triangles
Expand |
Embed | Plain Text
div.arrow-up { width:0px; height:0px; border-left:5px solid transparent; /* left arrow slant */ border-right:5px solid transparent; /* right arrow slant */ border-bottom:5px solid #2f2f2f; /* bottom, add background color here */ margin:0 auto; /* centers the arrow within the parent container */ font-size:0px; line-height:0px; } /* For a down arrow, use border-top instead! */
You need to login to post a comment.
