html - Button image moves up slightly when being clicked (in Internet Explorer) -


does know why image may move/jerk while being clicked (only happens in ie)? our button:

<button class="join" name="register" value="" onclick="window.location = 'location'" tabindex="4"></button> 

this class:

button.join {         background: url(../images/join.png);         border: 0;         height:  56px;         width: 178px;         cursor: pointer;         } 

button tags hassle styled correctly cross-browser. long you're using javascript onclick there's no real reason use button tag. try using anchor tag, targeting states , setting position of image.

<a class="join" href="#" id="register" onclick="window.location = 'location'" tabindex="4">button</a>  a.join:link, a.join:visited a.join:hover, a.join:active {         background: url(../images/join.png) 0 0 no-repeat;         border: 0;         text-indent: -999em; /* optional - remove html text button */         height:  56px;         width: 178px;         cursor: pointer; } 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -