We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Adding CSS Class to [style] CSS tag
Topic Started: Aug 10 2014, 12:26 AM (881 Views)
Nayu
Member
[ * ]
Board Address: http://w11.zetaboards.com/HavenCity/index/
Board Software: ZetaBoards
Description: If possible, I want class to be added to the CSS in post tag I'm using.

So the forum I am an admin at have been using CSS in post for a while now, using the [style] tag provided in here here: http://if.invisionfree.com/topic/5079145/1/

I was wondering if some modification can be added to the code that will allow us to use the CSS class selector in the post too.

Thanks in advance.
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Hi Nayu,

If I'm correct in thinking, ZB already has this as a feature: the [class] tag. It functions like this...
Code:
 
[class=helloWorld]Hello User[/class]

And then you add the CSS to it to each theme or just in the Javascripts section of your board template.
Code:
 
.bbcode-helloWorld {
font:bold black 12px;
}
Offline Profile Goto Top
 
Helena
Member Avatar
M is for Mod

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic