I have an edit button which appears on the page when users have access to edit. I've implemented it as a link:
<a class='editlink' href='edit.html'></a>
My corresponding css renders the editlink class as a pencil icon:
.editlink{
background-image: url(../img/pencil.png);
background-repeat:no-repeat;
padding: 2px 8px;
}
This works fine in Firefox, but doesn't appear at all in IE. If I put an & nbsp; inside the <a>
tag then it shows the pencil, but I was hoping to keep the tag empty. Is there a modification I can make to the CSS to fix this?