How can I influence the default indent?

When I indent a paragraph with the "Indent" button, the paragraph gets an indent of 30px:
<p style="margin-left: 30.0px;">My text</p>

I would prefer to set the indent via a <div> element and a CSS class:
<div class="Indent1"><p>My text</p></div>

Doing so, I could change also at a later time globally all indents. Is it possible to change the behavior of the "indent" button accordingly?

Alternative: At least I would like to change the default value of 30.0px for the indent? I know that this would not be influence already existing indents, but definitely for a new space this would be helpful.

1 answer

0 vote
Davin Studer Community Champion Feb 11, 2015

You could create a user macro that implements your indent. Then if you want to change it in the future you just change the user macro and all the pages that use that macro would change. Won't look as pretty in edit mode, but it would display the way you want.

Thanks for your hint, Davin. I tested the <div> statement as described in my question with the Confluence Source Editor and it works properly. The same applies to the <div> macro from the Adaptavist Content Formatting Macros. But both variants need additional time for editing, which is not acceptable. Therefore, I look for a solution to change the default (!) indents, so authors does not need to change their kind of writng/formatting.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

280 views 11 10
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you