Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a simple down arrow image to drop down menus

I have a site where certain menu headings are drop down (css)

I want to add a small down facing arrow onto the certain menu headers that are able to drop down. Can anyone give me any ideas how to do so?

like image 580
Josh Naylor Avatar asked Aug 23 '12 10:08

Josh Naylor


1 Answers

a:after{
    content: '';
    border: 4px solid transparent;
    border-top: 4px solid white;
    margin-left: 2px;
    margin-bottom: 3px;
    display: inline-block;
    vertical-align: bottom;
}

I think this is the best way to do it, as you can adjust the border for the length and adjust the 'border-top' for the height, giving you full customization.

like image 73
Sprose Avatar answered Oct 29 '22 13:10

Sprose