Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to have (in Confluence) a fixed width for the Info, Tip, Note, and Warning Macro(s)?

Holger B.
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2019

https://confluence.atlassian.com/confcloud/info-tip-note-and-warning-macros-724765216.html

adding a Note-Box with this Macro is easy done, but I need a fixed width whitch has exactly 900 pixels.

How can I do that?

One, but not good way is:
I can create a single cell table with a matching width, BUT than the boarders of the table are visible, because I use other tables on the same site.
If I make the boarders invisible, ALL tables on the site have invisible boarders.

One possible solution:
Is there a way to have only ONE table with invisible boarders on a site with multible tables?

Thanks.

HB.

3 answers

1 vote
Brecht Seys
Contributor
August 17, 2020

If you're not an admin (can't solve it via css) and have no "Content Formatting" plugin, your best shot is to put your info / tip / note / warning macro inside a column macro and give the column macro a certain width (px or %).

1 vote
Merle Fischer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2019

Hi Holger,

how comfortable are you with CSS? because you could influence this on a space level (even global if you needed to)

beware you have to be confluence admin user in order to do this, plus CSS styling is something that sometimes needs to be touched after updates, as class names change over time.

I would recommend you check out atlassian documentation on CSS styling in Confluence first: https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html

in Order to set the info, tip, warning and note Macro to a fixed width of 900px you would have to add this to you style sheet:

 

                .confluence-information-macro {  

width : 900px;  

}  

 

beware this will set the width for alle of those macros is that space to a fixed 900px, if oyu ever move to using conf on mobile devices as well, this could become a problem...

----

If you are not a confluence admin and this is really important you might want to talk to your conf. admins about this.

Hope this helps, cheers

Merle

0 votes
Jared Brenner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 8, 2019

Hi Holger,

If you have the Content Formatting for Confluence app you can use the Div macro as described here by @Milo Test to limit the size of the Info macro.  This is one of my favorite new tricks.

Good luck!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events