XF 2.1 table/box background

Scarzy

Member
Anyone knows how to get a table/box with a different background color? Like this 1614782412423.webp
I can't seem to get it done with bbcode at all, maybe I'm doing something wrong. Anyone any clue? Thanks!
 
Create a custom bb code called box like so:

1614787843659.webp


Then define the class in the extra.less templat to suit your requirements.
Less:
.ctaBbcodeBox
{
    background-color: orange;
    border: 1px solid black;
}

Use it like this:

1614787962101.webp

You can do a separate bb code for each colour, or use the option parameter so a custom colour can be used.
 
Create a custom bb code called box like so:

View attachment 247745


Then define the class in the extra.less templat to suit your requirements.
Less:
.ctaBbcodeBox
{
    background-color: orange;
    border: 1px solid black;
}

Use it like this:

View attachment 247746

You can do a separate bb code for each colour, or use the option parameter so a custom colour can be used.
Thank you, I'll try that! 😐

Worked! Thank you very much
 
Last edited:
Top Bottom