Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List of MyBB BBCode
#2
I have improved the Table myCode. I got irritated that centering something inside a td added an blank line to the cell when you saved the code, so I coded things to bypass the [align] tag and just center things with the table cell itself. It's great, believe me. As a side effect, we can also use other css to style the cell.

Examples:
Code:
[table]
[tr]
[td=text-align:center]This text is centered[/td]
[/tr]
[/table]

Produces:

This text is centered

But the code is more powerful than that:
Code:
[table]
[tr]
[td=text-align:center;color:red;text-decoration:underline;font-weight:bold]This text is red, centered, underlined, and bold.[/td]
[/tr]
[/table]

Produces:

This text is red, centered, underlined, and bold.

BUT I AM TOO COOL TO STOP THERE:
Code:
[table=Super title]
[tr]
[td]1 Cell[/td][td]2 Cell[/td][td]3 Cell[/td]
[/tr]
[tr]
[td=3]3 Cells wide, yeeeeaaahhh[/td]
[/tr]
[tr]
[td=3,text-align:center; background-image: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet); font-size:20pt; font-weight:bold]BIG ASS CENTERED TEXT ON A RAINBOW BACKGROUND.[/td]
[/tr]
[tr]
[td=3,text-align:center;font-size: 60pt;background-image: -webkit-gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) );background-image: gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) );color:transparent;-webkit-background-clip: text;background-clip: text;]FlAwL3Ss V1CkT0RyYYy.[/td]
[/tr]
[/table]


Super title
1 Cell2 Cell3 Cell
3 Cells wide, yeeeeaaahhh
BIG ASS CENTERED TEXT ON A RAINBOW BACKGROUND.
FlAwL3Ss V1CkT0RyYYy.


Messages In This Thread
List of MyBB BBCode - by Ayzek - 09-05-2016, 06:15 PM
RE: List of MyBB BBCode - by Ayzek - 11-02-2018, 09:57 AM
RE: List of MyBB BBCode - by Ayzek - 11-02-2018, 10:03 AM
RE: List of MyBB BBCode - by Ayzek - 11-02-2018, 10:10 AM
RE: List of MyBB BBCode - by Ayzek - 11-02-2018, 10:15 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)
Chat and Sioran News
You can find a more extensive list of stuff that's happened in role play here...if people bothered to add it.

About Eternity RPC

Eternity Role Play Community is a forum and community dedicated to role play. Founded in 2016 as a Modern Tech environment, the community has evolved to include other types of role play and gaming.