Home > CSS > Change img src without using content css property

Change img src without using content css property

Hi,

You may come across a situation where the content css property is of no use for example Mozilla Firefox does not understands content property and you have to consider it if you are looking towards cross-browser compatibility.

Below is a simple solution that would do the trick:

background: url('../images/common/Edit_new.png') no-repeat !important;

/** you can adjust paddings and width, height according to your need where image is displayed accurately **/
padding-left: 16px;  
padding-right: 8px;
padding-top: 0px;
padding-bottom: 15px;
width: 0px;
height: 10px;
Advertisements
Categories: CSS Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: