html - css button with image as background -
css
#printbutton{ width: 156px; height: 63px; background-image: url(../images/untitled_1.png); background-repeat: no-repeat; }
html
<button onclick="printpage()" class="dontprint" id="printbutton"></button>
this html , css of button image question how rid of background beyond image referring rectangle behind image image dont have background because looks this
use background transparent.
button{ margin : 0; padding : 0; border : 0; background : transparent; font-family : inherit; font-size : 1em; cursor : pointer; }
http://code.stephenmorley.org/html-and-css/styling-buttons-with-css3/
Comments
Post a Comment