BBCode List

Any information about the forum that needs to be known will be posted here, from rules to maintenance. Also post threads if there any problems or issues with the site that need to be fixed.
User avatar

six7
Posts: 4046
Joined: 01 Jul 2020, 10:03

BBCode List

Post by six7 » 16 Nov 2025, 12:27

djp73 wrote:
16 Nov 2025, 12:12
Can one of you post an example of that?

Is there a way to center a table?
I have it in the layout thread, second to last page currently. Tag is centerTable
User avatar

Topic author
Caesar
Chise GOAT
Chise GOAT
Posts: 13716
Joined: 27 Nov 2018, 10:47

BBCode List

Post by Caesar » 16 Nov 2025, 15:23

toysoldier00 wrote:
16 Nov 2025, 10:58
six7 wrote:
16 Nov 2025, 10:13
toysoldier00 wrote:
16 Nov 2025, 09:51
Apologies if there is a way to do this already that I cannot figure out. But if not,

Is there any way to add a BBCode wrapper that allows margin control inside posts? essentially a narrowed text column?
For example, something like:
[column=20]Text here[/column]

Which would render as:
<div style="margin-left:20%; margin-right:20%;">Text here</div>

The goal is simply to create a readable centered column of text instead of having the full post width. It could make writeups look much cleaner when matching text width to resized images. And give a little bit more flexibility to what can be made.
Yes! I figured out how to do this with using this nesting:

centerTable
Tr
Td
Table
Tr
TD
Div (put in your custom sizes)
/div
/td
/tr
/table
/td
/tr
/centerTable
Thank you! I thought there must be a way. That was going to drive me crazy haha!
You can also use the div code as you were using it. You just have to wrap all of your content in it because center align is going to change with the width of the person's screen. Like with your first post here: viewtopic.php?p=99060#p99060 Just put one div at the beginning and close it at the end and it should all align.

This is how is should look with just a single div and no center align tags Image

So you'd do:
div=0,105,8,645

{All of the content as you have it coded with no center aligns}

/div
Post Reply