Hi,
In the latest Internet Explorer when I click on a button I see the text reposition to the right and down by a pixel or two. In addition, when I click on the same button in the latest Opera 10.53 I see the same text repositioning as well as a black border appear.
Here is my button code:
#buttons
{
position: relative;
padding: 3px 10px;
margin: 5px 0 0 0;
outline: none;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
#buttons:hover
{
cursor: pointer;
}
#buttons:active
{
outline: none;
}
.submit
{
float: right;
background: #fff;
border: 1px solid #b0d0ff;
color: #06f;
}
.submit:hover
{
background: #E8FFEE;
color: #009124;
border: 1px solid #00D134;
-moz-box-shadow: 0px 0px 3px #32C958;
-webkit-box-shadow: 0px 0px 3px #32C958;
}
.submit:active
{
background: #32C958;
color: #fff;
border: 1px solid #32c958;
-moz-box-shadow: 0px 0px 0px #fff;
-webkit-box-shadow: 0px 0px 0px #fff;
}
and here is the html
<input id="buttons" class="submit" type="submit" value="Submit" />
As you can see I have applied a border style which is not black to the .submit:active state. So in a perfect world a black border should not be appearing on the button when clicked in Opera.
Any ideas on how to solve this and the text repositioning effect?
Thanks,
Adam
PS: These problems do not occcur in Safari, Firefox and Chrome.