BBCode: Align Table

Discussion in 'THREAD ARCHIVES' started by Darkagn, Aug 15, 2015.

Thread Status:
Not open for further replies.
  1. Hi
    In my signature I am trying to get the table to be aligned in the centre of the width of the page. I have tried the following codes:

    [table="align: center; border: 1px dashed purple;"]

    [table="halign: center; border: 1px dashed purple;"]

    [table="h-align: center; border: 1px dashed purple;"]

    [center][table="border: 1px dashed purple;"]

    [tr="align: center;"]

    [td="align: center;"]

    Is it possible to align the table in the centre and if so can you please show me an example?

    Thanks in advance!

    Darkagn
     
  2. It is not possible to my knowledge. Not conveniently, anyway.

    There are some imperfect ways around it, like aligning transparent images next to it with this command [imga=left]https://www.iwakuroleplay.com/data/avatars/l/0/1.jpg[/imga] (example image isn't transparent tho). It comes out like this. Just needs some measuring and hoping it doesn't fuck up on someone else's screen.


    BlahBlah2Blah3
    BlahBlah2Blah3
    BlahBlah2Blah3
    BlahBlah2Blah3
    BlahBlah2Blah3



    Alternatively you can use other codes to put it in.

    BlahBlah2Blah3
    BlahBlah2Blah3
    BlahBlah2Blah3


    [stabs=bcenter|200x200]
    {slide=Title|center}[table="border: 1px solid red;"][tr][td="border: 1px solid blue;"]Blah[/td][td="border: 0px;"]Blah2[/td][td="border: 0px;"]Blah3[/td][/tr][tr][td="border: 1px solid blue;"]Blah[/td][td="border: 0px;"]Blah2[/td][td="border: 0px;"]Blah3[/td][/tr][tr][td="border: 1px solid blue;"]Blah[/td][td="border: 0px;"]Blah2[/td][td="border: 0px;"]Blah3[/td][/tr][/table]{/slide}
    [/stabs]

    But none of it is very clean.
     
  3. Just add margin: auto; to the styling thus:

    Code:
    [table="margin: auto;"] . . . [/table]

    BlahBlah2Blah3
    BlahBlah2Blah3
    BlahBlah2Blah3
     
    • Thank Thank x 1
    • Useful Useful x 1
  4. @Samster that worked a treat, thanks!
     
  5. Any time! <3
     
Thread Status:
Not open for further replies.