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

Is it possible to adjust the size of the html-include macro?


I tried to include a page out of my MS Onedrive folder with the html-include macro.

This seem to work, but the size of the included page is not usefull --> see Screenshot (the frame is around 4x2cm, also for published pages).

  • Using the panel macro doesnt have any effect
  • If i include other pages, the size seem to be more reasonable.
  • By which parameters is the html-include macro defined?
  • Is there a way to resize the frame?
  • I tried the html macro with iframe --> This will only show blank pages
  • Are there any other ways to include external pages into confluence?



3 answers

0 votes
Diego Atlassian Team Mar 20, 2019

Hello there!

Thanks for sharing this with the Community Peter.

I tried replicating this with other pages, such as Google or Microsoft's website. Both were shown multiple times larger than what we have in your screenshot.

I was not able, however, to try out with an Excel document like you did.

Also, resizing the HTML Include is not currently possible. It simply displays what is given by the URL used.

With that in mind, I would like to understand if this size problem is also present with other addresses. Would it be possible for you to try this and let us know?

Do not forget to include the URLs on your Confluence whitelist:

Configuring the Whitelist

Looking forward to your reply.

Hello Diego,

Thank you for your reply!
I tried it with other pages, most of them seem to be on a much bigger scale!

The whitelist is already configured.

However, you can try it with my empty Excel sheet: 



Do you know, how it is possible that the html-include macro works, while the html macro with an iframe shows a blank page?


Thank you for your Support

Diego Atlassian Team Mar 21, 2019

Alright Peter, I got it to work!

So, reaching out to some Microsoft documentation, I was able to find that we can create links to embed workbooks in websites! Here is how:

  1. Go to your OneDrive and find the desired file
  2. Now, right click it and click embed:
    1. Screen Shot 2019-03-21 at 16.47.29.png
  3. Now, in the right side select Generate to create the link:
    1. Screen Shot 2019-03-21 at 16.48.03.png
  4. After that, the system will give you an iframe do embed:
    1. Screen Shot 2019-03-21 at 16.48.23.png
  5. Now, copy the iframe
  6. With the iframe copied, go back to Confluence
  7. Insert an HTML Macro
  8. Copy the ifram
  9. publish the page


  • We can edit the window appearance by clicking on "Customize how this embedded workbook will appear to others"
  • You can also edit the size of your iframe when in Confluence


Unfortunately, the HTML Include macro is not capable of displaying a bigger version, just like you experienced. This might have to do with how Microsoft system sends information about the table we are trying to share.


Hopefully the iframe solution does it for you! Let me know your thoughts Peter.

sorry, duplicate to the answer above.

Generally speaking, if you embed using the html component, you can put it in an iframe or div and give it a style with height and width, and it will change the box to that size for you. For example, <iframe style="height:1000px;width:1400px" src=""></iframe>

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

7,545 views 6 6
Join discussion

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