Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

Text and image link on same line?

Ads
banner
banner
banner
destroyer Offline referral

Posts: 430
Joined: Jul 2013
Reputation: 3

#1
Senior Member
So could anybody to create a link that will have a small icon/image on the right side of the link text? The text link and image or icon have to be on the same line. I have tried CSS background property but it's not working?
surenot Offline referral

Posts: 500
Joined: Jan 2014
Reputation: 16

#2
Senior Member
HTML code:

Code:
<a class="image_left text_right" href="URL">This is your link text</a>


CSS code:

Code:
.image_left {
background: url("image path goes here") no-repeat;
padding-left: 5px;
}

Code:
.text_right {add style for the text link here}





User(s) browsing this thread: 1 Guest(s)