html - css button with image as background -


iamge

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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -