Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

My First User Macro.

Hello all!

  As we all continue to learn Confluence, you might come across an area which "grinds your gears". 

  • TABLES frustrate me a bit


Some of my templates have "table = 100%" coded in the HTML.

The purpose was to make the page's tables look uniform, but when I copied and pasted one of those tables, the formatting was lost. I would then need to re-code the table width.

After searching the Atlassian community on how to hide the table border, I came across a posting from @Davin Studer who supplied a user macro!

After seeing how an user macro is setup, I attempted to create my own user macro for table width... and was successful! 


##Macro Name: max_table_width
##Macro Title: Max Table Width
##Macro Body Processing: Rendered

## Macro title: Max Table Width
## Developed by: Jonathan M. Smith
## Date created: 10/12/2018
## @noparams

.maxtablewidth table.confluenceTable {width: 100%;}
<div class="maxtablewidth">$body</div>



I would like to thank the community for supplying thoughts and content to "noobs" like me which helped create my first macro. 




Hi @Jonathan Smith - congrats to your own Macro! Really cool. That motivates me to also try it! Many ideas - many problems with the implementation :D

Nice job sir! User macros FTW!

Interesting way to adjust the tables :) 


Log in or Sign up to comment
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,631 views 7 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you