MyBB Community Forums

Full Version: class in Mycode not working (solved)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Trying to make a relatively simple mycode, which will replace [header2][/header2] with <div class="test"></div> using some CSS from global.css. More info below, but what am I doing wrong here? Huh I am having to use inline css for now, which I don't really want to use if i can help it...

Regular Expression:
\[header2\](.*?)\[/header2\]

Replacement:
<div class="test">$1</div>

CSS in global.css
.test{
  font: 20px;
  border-bottom: 1px solid #000;
}
This is working fine for me. The code is being parsed perfect.

However I'd like to let you know that font is a composite property. The way you have declared it will not work. try replacing with:

font-size: 20px;
I think there's something wrong with my theme, then. Tried on a different theme and it worked fine. Time to go diggin!

Thanks for your help Smile Like I said, new to MyCode, so automatically assumed it was something I was doing wrong haha
Parser has nothing to do with theme ...
Used the wrong word-- i meant something in my templates