Hello,
I have an anchor element that uses a css class to basically replace the text with an image. I know this sounds odd. But, the end result looks correct (for the most part).
.toolLink a {
overflow:hidden;
}
.toolEdit
{
float:left;
background:url(/resources/images/edit.png) no-repeat;
width: 15px;
height: 15px;
}
My anchor element looks like this:
<a href="#" class="toolEdit">edit</a>
When the "float:left" statement is included, everything looks correct. However, when I remove the "float:left" statement, the word "edit" appears and the image is shrunk. I need to remove float:left because I need to center the content in the column of a table. But as long as float:left is there, the content aligns to the left. What should I do?