Jump to content

Use more IDs in css for [data-forumid=""]


Lau ^_^

Recommended Posts

36 minutes ago, Lau ^_^ said:

Hi

how can i use more IDs  in [data-forumid="69"] ?

For example: [data-forumid="69,33,33,11,55,22,323"] etc..

I'm assuming it's so you can have one specific icon for multiple forums right?

Maybe try something like this

[data-forumid="1"] .fa-comments:before,
[data-forumid="2"] .fa-comments:before,
[data-forumid="3"] .fa-comments:before {
	content: "whatever";
}

idk if this'll actually work. But usually in css you can group classes together like that.

Edited by Steve Z
  • Like 1
Link to comment
Share on other sites

10 minutes ago, Steve Z said:

I'm assuming it's so you can have one specific icon for multiple forums right?

Maybe try something like this


[data-forumid="1"] .fa-comments:before,
[data-forumid="2"] .fa-comments:before,
[data-forumid="3"] .fa-comments:before {
	content: "whatever";
}

idk if this'll actually work. But usually in css you can group classes together like that.

I use this for some  category style. I already use what you have shown me.. but i'm looking for something simpler so i don't have to edit so many css lines if i want to add this for other categories in the future.

Edited by Lau ^_^
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...