The {center} macro allows you to quickly and easily center content...
There are many times when you want to center text, only to find that the html macro has been disabled or the html-tag macro has been configured not to allow center tags, etc. The {center} user macro has been developed as a simple way to center content.
Add the macro to your page as follows:
{center}your content{center}
This plug-in is available without cost for both commercial and non-commercial purposes. However, if you have found it to be useful, particularly within a commercial environment, please consider making a donation to the author. This will encourage continued development of this and other plug-ins, as well as speeding up the response for your latest maintenance request.
If you wish to donate, it can be done easily with a credit card or bank transfer using PayPal. No account sign-up is required for credit or debit card payments.
This macro has been tested by Adaptavist with Confluence 1.4.1, 1.4.3, 1.4.4, 2.0, 2.1 and 2.1.2.
It is usually pre-installed with Host accounts. To install it on your own Confluence installation, please see Content Formatting Macros
Adaptavist maintain a JIRA Project for tracking bug reports and feature requests for this macro. The currently reported items are shown below:
jiraissues: Could not download[ http://jira.adaptavist.com/secure/IssueNavigator.jspa?view=rss&pid=10080&component=10142&statusIds=1&statusIds=3&statusIds=4&statusIds=5&sorter/field=updated&sorter/order=DESC&tempMax=25&reset=true&decorator=none] : caused by : Circular redirect to 'http://jira.adaptavist.com:80/secure/IssueNavigator.jspa'
The macro allows you to center any content, not just text. In this example, we will center an entire table:
{center}
||Heading 1||Heading 2||
|a|b|
{center}
Which results in:
Heading 1
Heading 2
a
b
This is a great way to make tables look much nicer on-screen. However the {center} macro cannot be nested so if you center the table, you can't center the content of the normal cells inside the table.
Hints and Tips
To center images, it's quicker and easier to use the inbuilt settings (see Image Options for details):