Looking to customize the buttons on a site that uses templates that can't be modified directly. I have to rely on a CSS file to style the elements as the buttons are created using tables within table cells. How can I change the background color of the buttons? I managed to make the borders thicker on hover, but the grey background persists regardless of my attempts to modify it.
My code:
.bntBgB {
background-color: #122d98;
}
.bntBgB:hover {
background-color: #122d98;
border-width: 0.2rem;
}
.bntBgT {
background: none;
border: solid 1px #384e86;
border-radius: 6px;
color: #fff;
cursor: pointer;
font-family: "Roboto-Light";
font-size: 0.875rem;
font-weight: 300;
letter-spacing: 0.04688rem;
margin: 0;
max-width: 300px;
outline: none;
padding: 0.6em 0 0.75em;
text-decoration: none;
transition: background 0.25s ease;
white-space: nowrap;
margin-right: -10px;
}
.bntBgT:hover {
background: #031136;
border: solid 1px #8fa0ca;
color: #fff;
text-decoration: none;
}
<table id='tbl_secondarycustbtn_set_prim' cellpadding='0' cellspacing='0' border='0' class='uir-button' style='margin-right:6px;cursor:hand;' role='presentation'>
<tr id='tr_secondarycustbtn_set_prim' class='pgBntG'>
<td id='tdleftcap_secondarycustbtn_set_prim'><img src='/images/nav/ns_x.gif' class='bntLT' border='0' height='50%' width='3' alt='' />
<img src='/images/nav/ns_x.gif' class='bntLB' border='0' height='50%' width='3' alt='' /> </td>
<td id='tdbody_secondarycustbtn_set_prim' height='20' valign='top' nowrap class='bntBgB'>
<input type='button' style='' class='rndbuttoninpt bntBgT' value='Set As Primary' id='secondarycustbtn_set_prim' name='secondarycustbtn_set_prim' onclick="nlFireEvent(getButton('custbtn_set_prim'), 'click'); return false;" onmousedown="this.setAttribute('_mousedown','T'); setButtonDown(true, false,
this);" onmouseup="this.setAttribute('_mousedown','F'); setButtonDown(false,
false, this);" onmouseout="if(this.getAttribute('_mousedown')=='T')
setButtonDown(false, false, this);" onmouseover="if(this.getAttribute('_mousedown')=='T') setButtonDown(true, false,
this);"></td>
<td id='tdrightcap_secondarycustbtn_set_prim'>
<img src='/images/nav/ns_x.gif' height='50%' class='bntRT' border='0' width='3' alt=''>
<img src='/images/nav/ns_x.gif' height='50%' class='bntRB' border='0' width='3' alt=''>
</td>
</tr>
</table>
Button Image link: https://i.sstatic.net/V7Lxy.jpg