tags:

views:

29

answers:

2

alt text

How to achieve this with this code.

<a href="#">Click to Donate to save rabits</a>

a {background:url(rabit.gif); padding-left:70px}

I'm getting like this.

alt text

I know it's possible if with change in HTML , but is it possible to achieve this with this code.

A: 

How about:

<a href="#"><img src="rabit.gif" />Click to Donate to save Rabits</a>

and then:

img {float: left}
Dan Iveson
I want to use image in background of `a`
metal-gear-solid
+2  A: 

try this

a {
    background:url(rabit.gif) no-repeat; 
    padding-left:70px; 
    width:50px; 
    font:bold 20px Arial, Helvetica, sans-serif; 
    float:left;
    height:194px;
}

html

<a href="#">Click to Donate to save rabits</a>
kc rajput