XF 2.1 Custom BB Code Background

MegaPixel

Active member
Hello,

I have a custom BBCode set up which works as follows:
1651566655636.webp

Extra.css;
.bbdocument {
background-color: white;
border: 1px solid black;
margin-left: 20%;
margin-right: 20%;
padding-top: 25px;
padding-bottom: 25px;
padding-left: 25px;
padding-right: 25px;
color: black;
}


This works as we would like it too in general but is there a way / how would we do it so we can set it so that we can use {option} for the background color?
I.e. [document=red] would set it a red background as opposed to white.

Any assistance would be greatly appreciated.
 
Top Bottom