I am trying a new way(to me) of creating buttons. Using I create the text like so:
<a href="#" class="btnTxt">News</a><br>
and using css use the background-image to add the image to the button. This way I only have two images total for six buttons and the text changes in the html.
.btnTxt {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
color: #FF0000;
left: 40px;
top: 255px;
position: relative;
text-align: center;
vertical-align: text-bottom;
height: 25px;
width: 100px;
background-image: url(button1.png);
padding: 0px;
margin: 0px 10px 10px 0px;
background-position: right center;
}
My problem is that the text is positioned center like I want it but too high. I cannot get it to position middle for height.
Any ideas?
<a href="#" class="btnTxt">News</a><br>
and using css use the background-image to add the image to the button. This way I only have two images total for six buttons and the text changes in the html.
.btnTxt {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
color: #FF0000;
left: 40px;
top: 255px;
position: relative;
text-align: center;
vertical-align: text-bottom;
height: 25px;
width: 100px;
background-image: url(button1.png);
padding: 0px;
margin: 0px 10px 10px 0px;
background-position: right center;
}
My problem is that the text is positioned center like I want it but too high. I cannot get it to position middle for height.
Any ideas?