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

Thread: 

Add css style to image and link?

Ads
destroyer Offline referral

Posts: 430
Joined: Jul 2013
Reputation: 3

#1
Senior Member
I have a div that contains my content mostly text with only a few images and maybe on or two links so I need to learn css trick to apply css style only to link and image not to the whole content any idea how can I do it?
victor Offline referral

Posts: 638
Joined: Jun 2013
Reputation: 33

#2
Senior Member
Try:

HTML
PHP Code:
<div class="testing">
// my HTML content
<a href="#">text link</a>
<
img src="#" border="0" height="16" width="16" />
</
div

CSS
Code:
.testing a {here goes you link css style}
.testing img {here goes you image css style}





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