One monumental principle of computer engineering is that software should be maintenance. It means that it shouldn't be hard to read, write, and edit existing software. This is easier to say than...
There is a simple, but genius, method to replace button with icon. I learned it from jQuery.
First, create the button, as you would always do. You can use <button> or <input type=”button”>
Remove the text by setting text-indent with large negative value
Finally, set the size and background on the button.
If there is a problem with Internet Explorer, add the following two lines. Display must be set to block to prevent the button from being repositioned.
That’s what you call hack of the day!