<i></i>
#menu li a:after { font-family: FontAwesome; content: "\f054"; display: inline-block; float: right; padding-left: 10px; vertical-align: middle; }
The icon appears next to the link on the right which is correct, but how can I align the icon all the way to the right??
一直到菜单宽度的末尾。
float: right
位置 正确的
#menu li a:after { font-family: FontAwesome; content: "\f054"; position: absolute; right: 0px; padding-left: 10px; vertical-align: middle; }