PDA

View Full Version : Custom BB Code Question


Dirks
03-03-2016, 05:17 AM
Hey everyone,

I'm trying to create a custom BB code to make tables without cellpadding or cellspacing.

Long story short, I want to link map an image without having to enable HTML on the forum, so I figured tables using BB code were the way to go.

I've currently input the following as my custom code, but it's not working: <table cellpadding="0" cellspacing="0">{param}</table>

Any suggestions you have would be most appreciated.

I attached an image so you can visualize my problem as well.

Thanks!

Dirks
03-03-2016, 02:08 PM
It recently struck me that I could probably create a table class without creating a new BBcode by adjusting CSS.

I added this to my additional.css .nstable {

padding:0px; margin:0px;

}

And I put this into the editor: [table="class: nstable"]

It's still not working, but I'm no good at CSS. Maybe someone here could help with this method rather than editing BBcode.

trollshrooms
03-04-2016, 12:29 PM
editor:

<div class="nstable">