Following is my markup that works well on all the browsers except the new genie in town Firefox 3.0
Its just because of the style 'padding-right:6px;' given in my wrapBtnOrng Class... but I dont know how do I have a check that if the browser is FF 3 then remove the padding, any help guys.. ?
Thanks.
Markup for my button: <button class="wrapBtnOrng" type="submit"> <span class="lft"> <span class="md"> My Button </span> </span> </button>
Try "button.wrapBtnOrng". FF3 has button, input[type="reset"], input[type="button"], input[type="submit"] {padding: 0px 6px 0px 6px;} and for you to properly override FF3's native style, you need to have a rule that has higher precedence.
Tried lot of things, finally there wasn't any CSS solution that worked everywhere, so I had to change the markup and css again, this is my solution that works on every browser (it does contain extra markup elements, but I had no other solution)