How can I style a form button or .net control button if I don't have access to the code to insert an image?
|
0
|
To style an input button like you see in html forms, attach an id or class to it. (This method also works for .net button controls.)
This line will apply your button image to the element.
This line removes the input field's border.
These lines get rid of the button's text. Text-indent: -1000px suffices for all browsers except IE, which requires the font declaration. The font declaration can also be lengthened to font-size: 0; line-height: 0;, the family declaration is not necessary, but I write it this way so that I can use the short-form version
These lines define your button's dimensions.
|
||
|
|

