How to insert filehost icons to your wordpress sites

Status
Not open for further replies.
Nice tut cyberavijit

btw how to exclude a certain link?

Like I want sort all the ryushare link to have a background
but I want my referral link not to be included into that. is that possible?
 
Last edited:
Nice tut cyberavijit

btw how to exclude a certain link?

Like I want sort all the ryushare link to have a background
but I want my referral link not to be included into that. is that possible?
PHP:
a:not([href*="ryushare.com/affiliate.python?aff_id="]) { 
    background: url("http://dl.dropbox.com/u/16918132/Logo/New%20folder/small/up.png") no-repeat; 
    height: 16px; 
    width: 16px; 
    padding: 5px 25px 
}
 
Soft, I'm not familiar too much with the 'not' pseudo-class selector.
From what I understand what you did above is all a: should work as it says
except whats written in

PHP:
a:not

?
 
I was so interested into the :not selector so I went out and found a nice explanation about it:
http://www.hongkiat.com/blog/a-look-into-css3-negation-not-selector/

Thanks soft for opening my mind.

---------- Post added at 07:46 AM ---------- Previous post was at 07:43 AM ----------

So what you showed works like this:

if the url shown down appears in a link:

PHP:
a:not([href*="ryushare.com/affiliate.python?aff_id="])

than display this:

PHP:
{ 
    background: url("http://dl.dropbox.com/u/16918132/Logo/New%20folder/small/up.png") no-repeat; 
    height: 16px; 
    width: 16px; 
    padding: 5px 25px 
}

Am I right?
 

So what you showed works like this:

if the url shown down appears in a link:

PHP:
a:not([href*="ryushare.com/affiliate.python?aff_id="])
than display this:

PHP:
{ 
    background: url("http://dl.dropbox.com/u/16918132/Logo/New%20folder/small/up.png") no-repeat; 
    height: 16px; 
    width: 16px; 
    padding: 5px 25px 
}
Am I right?

if the url shown down does not appears in a link then it will add those rules to the element. It will simply exclude those elements that matches inside the :not() and apply rules to others
 
Status
Not open for further replies.
Back
Top