PDA

View Full Version : Background Color


GCSkye
03-16-2009, 06:01 AM
Wanted to do background color bbcode

{param}

My code is

<div style="width: 100%; background-color: {color here}">{param}</div>

What needs to be replace {color here} for this to work

TigerC10
03-16-2009, 06:11 AM
I'll give you one of my personal modifications...


Title: Highlight
BB Code Tag Name: highlight
Replacement:
<span style="background-color:{option}">{param}</span>

Example: this is highlighted text
Description: The [highlight=color] tag allows you to create highlighted text.


There's already a [highlight] bbCode, but it doesn't accept parameters. This bbCode "overloads" the highlight bbCode to give stuff a background color. I made a custom text editor to also have a color picker that does it for you - do you want that too?