inherit
24947
0
Oct 10, 2024 23:42:20 GMT -8
ctrlvee
341
May 2004
andylupin
|
Post by ctrlvee on Nov 6, 2021 12:03:29 GMT -8
Hi! I wanted to know if it was possible to override a member group color in a specific post using the Style Tag Plug-in.
For example, I know I can do this:
[newclass=".user-link.group-5"]color: #921303 !important; [/newclass]
And that takes care of everything in a thread/page.
but, i'd like to do something like this:
[newclass=".class-name.user-link.group-5"]color: #921303 !important; [/newclass]
and then in my post:
[attr="class","class-name"]@tagged-user asfasdfasdf
I don't want to override the color for the entire thread, just for my post. I just need to know if its possible or I'm messing up the syntax somehow.
Also, if this is more appropriate in the coding question board please let me know so I can repost it there.
|
|
inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Nov 6, 2021 15:44:32 GMT -8
Hi! I wanted to know if it was possible to override a member group color in a specific post using the Style Tag Plug-in. For example, I know I can do this: [newclass=".user-link.group-5"]color: #921303 !important; [/newclass] And that takes care of everything in a thread/page. but, i'd like to do something like this: [newclass=".class-name.user-link.group-5"]color: #921303 !important; [/newclass] and then in my post: [attr="class","class-name"]@tagged-user asfasdfasdf
I don't want to override the color for the entire thread, just for my post. I just need to know if its possible or I'm messing up the syntax somehow. Also, if this is more appropriate in the coding question board please let me know so I can repost it there.
Unfortunately, no. Styles are only applied to content inside of the post, and not to anything outside. Someone's post shouldn't be able to change what anything else on the page looks like except for the post content.
If this was the case, someone could post a Style Tag post with something like: [newclass="body"]display: none;[/newclass] and then that would make the page show up as blank. It's a preventative measure to stop bad actors. 👍
|
|