Forum Moderators: open
Working with the form element <input type=button>
Has anyone ever came accross this issue I have found?
If we put the value of the input tag to 'Ok' and an other one to 'Create a widget', the spacing at the beginning and end of the values are increasing i.e. for the value 'Ok' we have roughly 4px padding left and right for the 'Create a Widget' we have roughly 8-10px padding.
I have allready tried the obvious of putting padding, padding-right & left into the style sheet to have a default value at either end of the value, but, this doesn't do anything!
Also tried letter-spacing with no joy there either.
Anyone came accross this and found a fix/hack?
Many thanks and kind regards,
-George
PS the fix need only apply to IE
It may be possible to adjust the padding with stylesheets but I would not expect to be able to do so. (I would expect the padding, margin and border values to be applied outside the button or ignored).
Your options are:-
- Forget about it (recommended).
- Add extra space at start and end of value, e.g. ' ok '.
- Use graphics.
- Use text links with fancy borders and backgrounds, etc.
(by adjusting the left-right/top-bottom padding etc, you could simulate a button press I guess - but is it really worth the trouble?)
Kaled.
Firstly many thanks for taking the time out to answer this question.
>>Browsers probably use the the Windows API
I had a sneaky feeling this would be the case, same as the <select> (which we have had a few nightmares with in the past)
Your options are:-
- Forget about it (recommended).
- Add extra space at start and end of value, e.g. ' ok '.
- Use graphics.
- Use text links with fancy borders and backgrounds, etc.
(by adjusting the left-right/top-bottom padding etc, you could simulate a button press I guess - but is it really worth the trouble?)
But anyway again I thank you for placing the food in my head for thought!
-George