Markup:
<input type="button" value="random text random text random text random text random text"
style="padding-left:20px; text-align:left; width:100px;" />
Here padding-left works fine until I set the width, chopping the text off in the middle, which pushes padding-left away. This is a Firefox problem only btw. Works fine in all other browsers. Live example: http://jsfiddle.net/aB25a/1
Any ideas?
You should use the
<button>element, this gives you more control over what happens with its contents:And the styles then are:
Example that should work in all browsers: http://jsfiddle.net/p8mg8/1/