Variables as css classes
You can use any variable in MyBB to create CSS classes, here is an example using the {$thread['closed']} variable
HTML
<div class="thread_lock_{$thread['closed']}">
thread stuff
</div>
CSS
.thread_lock_1 {
background: #ED00FE;
}
Written by leefish
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#