Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi am trying to add an icons after my menu links, it works but after every a href it creates empty spaces, so my icon after my a href is never display the same why?

C#
.Menu a:after {

    content: url(myicon);
    padding-left:30px;
    background-position-x:right;
    background-position-y:center;
}


here is my menu a after
Right not it gets like this if the text is not long
Text *
if longer Textttt *

its not the same space after because it auto adds free spaces after my a href, i display them inline-block?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900