The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Selective CSS

3 posters

Go down

In progress Selective CSS

Post by Deggerz January 26th 2012, 10:30 pm

Code:
a[href="/u4"]{
    padding-left: 15px;
    background: url(http://img42.imageshack.us/img42/9779/forum2u.png) no-repeat left;
    text-shadow:0px 2px 15px #00ff00 !important;}

However, this adds the crown infront of the Avatar, and the profile button in posts

Anybody know how to get rid of these?


http://gamebefore.actieforum.com/t64-forum-updates
avatar
Deggerz
New Member

Posts : 20
Reputation : 0
Language : English

Back to top Go down

In progress Re: Selective CSS

Post by LGforum January 26th 2012, 10:40 pm

change the first line to:

.name a[href="/u4"]{
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

In progress Re: Selective CSS

Post by Deggerz January 26th 2012, 10:45 pm

LGforum wrote:change the first line to:

.name a[href="/u4"]{

Perfect!
Now do you know how to add the effects to the front of the name on the profile?
http://gamebefore.actieforum.com/u4



Edit
This now no longer shows the effects on homescreen (online members, recent posts etc.)
avatar
Deggerz
New Member

Posts : 20
Reputation : 0
Language : English

Back to top Go down

In progress Re: Selective CSS

Post by LGforum January 26th 2012, 10:49 pm

Why RD?

CSS is much faster, and more reliable method.
CSS has no execution time, its literally predefined rules.

The CSS route is much better.

To solve this problem:
This now no longer shows the effects on homescreen (online members, recent posts etc.)
Add the original CSS from the first post and then after it add this:

Code:

.postdetails a[href="/u4"] {
  background-image: none;
}

That will take it off the avatar, but will keep the homepage ones intact.


Last edited by LGforum on January 26th 2012, 10:52 pm; edited 1 time in total
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

In progress Re: Selective CSS

Post by Deggerz January 26th 2012, 10:52 pm

@Rideem3

Thats great!
Now thats still not on the profiles
Also, how to make it use the effects on the chatbox?
avatar
Deggerz
New Member

Posts : 20
Reputation : 0
Language : English

Back to top Go down

In progress Re: Selective CSS

Post by Nera. January 26th 2012, 10:53 pm

The name on the profile is not a link so it wont show like that.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

In progress Re: Selective CSS

Post by LGforum January 26th 2012, 10:53 pm

I edited my post above to include the homepage background images and to take it off the avatars.

Now to include it in the profiles that WOULD mean JS, since there is nothing unique determining the element of the username in the profiles.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum