Putting a .png image into a CSS button?
I'm experimenting with an icon that I want to place inside a CSS button.
The button works fine, but the icon just doesn't want to appear. I've tried various ways (I can do it with "input")...
But I want to do this in CSS...
I already have this CSS for the button:
.button { width: 36px; height: 20px; display: inline-block; text-align: center; vertical-align: middle; padding-top: 10px; padding-bottom: 5px; border: 1px solid #057fd0; border-radius: 8px; background: #992828; background: -webkit-gradient(linear, left top, left bottom, from(#33bdef), to(#03789f)); background: -moz-linear-gradient(top, #33bdef, #03789f); background: linear-gradient(to bottom, #33bdef, #03789f); font: normal normal bold 16px arial; color: #ffffff; text-decoration: none; } .button:hover { border: 1px solid #057fd0; background: #992828; background: -webkit-gradient(linear, left top, left bottom, from(#3de3ff), to(#0490bf)); background: -moz-linear-gradient(top, #3de3ff, #0490bf); background: linear-gradient(to bottom, #3de3ff, #0490bf); color: #ffffff; text-decoration: none; } .button:active { background: #982727; background: -webkit-gradient(linear, left top, left bottom, from(#1f718f), to(#03789f)); background: -moz-linear-gradient(top, #1f718f, #03789f); background: linear-gradient(to bottom, #1f718f, #03789f); }
Robin
Graphic Design & Web Development Services: http://www.oalddesign.com
Banner Design Services: http://bannercheapdesign.com