Here are some useful snippets for pure CSS arrows:-
.arrow-up { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid black; } .arrow-down { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid #f00; } .arrow-right { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 10px solid green; } .arrow-left { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right:10px solid blue; }
If you are looking to add arrows to a menu item etc then make sure the parent is relative and apply the following CSS format:-
.my-div { position: relative; } .my-div:after { content: ''; box-shadow: 5px 13px 10px black; position: absolute; left: -19px; top: 12px; }