Skip to content
CodeWorth
CodeWorth

Code worths when shared

Primary Navigation Menu
Menu
  • BLOG
    • DataBase
    • Programming
    • Mobile
    • Multimedia
    • OS Tips
    • Others
    • Web Development
  • Products
    • Utilities
    • Games
    • JsGenLib
      • PlugIns
      • Core Functions
      • Helper & ShortHands
  • About

CSS – Background Image – Input Button

On September 22, 2009
In Web Development
Tagged CSS, HTML, IE, Web
With 0 Comments
Setting a background image to input is dependent on browser
  • background-image for Firefox, Opera, Safari & Edge
    .bgnw
    {
    	background-image:url('darkglass.png');
    	width:100px;
    	height:60px;
    }
    		
  • For IE & Others
    .bg
    {
    	background:white url('darkglass.png') repeat scroll 0 0;
    	width:100px;
    	height:60px;
    	border:solid 1px;
    }
    		
Note: In future when microsoft start supporting background-image, this post would become void.

Below is the sample

2009-09-22

Subscribe

Enter your email address to receive notifications about new posts via email.

Join 634 other subscribers

Google

Designed using Chromatic WordPress Theme. Powered by WordPress.