So I have done several searches through various other questions on stackoverflow.com and various other websites to fix this issue I have been having. I have had no luck trying everything that I have found. I am using CSS to style these buttons for use on a website, and I cannot get the text to center vertically in Firefox. It is centered on Google Chrome and Internet Explorer (crazy, I know). However, in the fiddle, the text appears to not be vertically centered in Google Chrome either.
Here is the CSS:
button {
margin: 0;
padding: 0;
}
button.slide_button {
background-color: #E3E4F0;
border: 1px #8C8C8C solid;
border-radius: 25px;
height: 25px;
padding: 0px 5px;
vertical-align: middle;
line-height: 25px;
}
button.slide_button:hover {
background-color: #E3E4F0;
border: 1px #8C8C8C solid;
border-radius: 25px;
height: 25px;
color: #F00;
}
button.slide_button:active {
background-color: #BFBFE3;
border: 1px #8C8C8C solid;
border-radius: 25px;
height: 25px;
}
Here is the HTML (contains references to Javascript functions I use on the site):
<button id="slide_prev" class="slide_button" onClick="prevImg()">Previous</button>
<button id="slide_pause" class="slide_button" onClick="pauseShow()">Pause</button>
<button id="slide_next" class="slide_button" onClick="nextImg()">Next</button>
Here is the fiddle: http://jsfiddle.net/59ven/