dzm
dzm

Reputation: 23554

remove button padding on active in IE

In IE for button elements, when you click the button the text gets pushed down, it's like additional padding as been added to the button when active or click.

Any idea how to remove this? I've tried adding:

button:active, button:focus{
 padding: 0;
 margin: 0;
 outline: 0;
}

but this doesn't do anything.

Thank you!

Upvotes: 1

Views: 1312

Answers (2)

Jeaf Gilbert
Jeaf Gilbert

Reputation: 11991

IE7? Put overflow:hidden to the button

Upvotes: 2

locrizak
locrizak

Reputation: 12281

I believe putting it is putting a border so by adding border:none should get rid of it. In any case you should be using a reset like Eric Meyers reset which puts all browsers at an even playing field

Upvotes: 0

Related Questions