Dont know where i need to add the example Code
Asked by serc:

Hey guys, i find a example for a table in confluence:

    {section:border=true}{column:width=30%}Dieses ist der Text f?r die Spalte. Dieses ist die schmalere Spalte mit einer Breite von nur 30%.{column}{column:width=70%}Der Text f?r diese Spalte. Dieses ist eine breitere Spalte mit einer Breite von 70%. {column}{section}

My Problem is, i dont know where i can add this Code?


Answers:
author: Zak Laughton
body: Hi Serc,

The code you posted doesn't look like any Confluence recent code I've seen, but a two-column table should be straightforward to create by following the steps on [Tables](https://confluence.atlassian.com/doc/tables-136463.html?_ga=2.241151747.1286342639.1549898098-1660852626.1537195837).

If that page doesn't give you the functionality you're looking for, please let us know what specifically what you're trying to do with the table that you can't accomplish.

Thanks!

comments: author: serc
body: Hi guys, so creating a table is not a problem. But somehow it doesn't work with the size of the columns. Can I set the width of the columns myself? So as an example, column 1 should be 3cm wide, column 2 should be 5cm wide and so on...


author: Bill Bailey
body: That looks like a two column layout and not a table. And it is the old Wiki markup code. From the editor menu, + -\> { } Markup to open the insert markup function. You can paste it into the left side, and it will then do the conversion for you (tried it just now).

Refer to the docs for how to do what you want to do via the editor ribbon. [page-layouts-columns-and-sections](https://confluence.atlassian.com/conf612/page-layouts-columns-and-sections-958777458.html)

comments: author: serc
body: Hi guys, so creating a table is not a problem. But somehow it doesn't work with the size of the columns. Can I set the width of the columns myself? So as an example, column 1 should be 3cm wide, column 2 should be 5cm wide and so on..


author: Bill Bailey
body: If you try the technique I describe, you will see that the percent column widths were preserved. And if you edit the column macro, you will see it takes a width parameter

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/45768i3A4EC3F2ADFE71C8/image-size/large?v=v2&px=999 "image.png")


author: Jared Brenner
body: Hi Serc,

It's pretty easy to add a table in Confluence. Check [this](https://confluence.atlassian.com/doc/tables-136463.html) page for more information.

Good luck!

comments: author: serc
body: Hi guys, so creating a table is not a problem. But somehow it doesn't work with the size of the columns. Can I set the width of the columns myself? So as an example, column 1 should be 3cm wide, column 2 should be 5cm wide and so on....


author: Jared Brenner
body: Columns can be set to fixed widths by setting the width mode to Fixed and dragging them to the desired sizes. This may not be as precise as hard coding the values, but this functionality is baked in and wouldn't require any extra work.


author: serc
body: but with a pdf export the width from the colums get diffrent.


author: Jared Brenner
body: That feature doesn't work very well. You'll probably want to try a PDF export app (there's a few different ones in the Marketplace).


Tags: confluence-server

server