Center Widget Connector
Asked by Paige Tonra:

Hello,

I use confluence as a knowledge and connect that to our customer portal. I use the widget connector to showcase some videos. However, I cannot get the videos to be center in the page. It is set to be center but it always displays on the left hand side in both confluence and the customer portal. How can I center it on the page?

View from Portal:

![view frm portal.png](https://community.atlassian.com/t5/image/serverpage/image-id/74248i2DB3598C574D6D3B/image-size/large?v=v2&px=999 "view frm portal.png")

View from Confluence:

![view from confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/74249i677C141994923BE1/image-size/large?v=v2&px=999 "view from confluence.png")


Answers:
author: Tim Dobbins
body: Hi There  

I was able to both **center the video** AND **allow fullscreen mode** using the widget connector for my vimeo video. Not sure why it works, to be honest, but try the following:

<br />

![Screenshot 2020-10-13 at 11.47.30.png](https://community.atlassian.com/t5/image/serverpage/image-id/114029iD8C79BDF7FC1D112/image-dimensions/225x116?v=v2 "Screenshot 2020-10-13 at 11.47.30.png")  

Good luck!


author: Shannon S
body: Hello Paige,

Thank you for contacting us about this.

The Widget Connector doesn't allow for you to align the content inside of it. I would much more recommend the [iFrame macro](https://confluence.atlassian.com/confcloud/iframe-macro-950276528.html) for this.

For the URL, insert the URL as it is in the embed code from Vimeo. (e.g. *[https://player.vimeo.com/video/#########](https://player.vimeo.com/video/#########?)* instead of *[https://vimeo.com/#########](https://vimeo.com/#########?)* ). You can then specify the iFrame size. The default size that Vimeo uses in their embed code is 640x401. You can also align this to *middle* using the iFrame macro.

Could you give that a try and let me know how that works for you?

Regards,

Shannon

comments: author: Ketan Pandit
body: Hi this worked for me! I embedded a video from Vimeo. I also want to know how i can give the option of viewing the video is fullscreen mode.

Thanks!


author: Shannon S
body: Hi Ketan,

Welcome to Atlassian Community! It's nice to meet you.

It's not possible to set the iFrame to load in fullscreen, but the video host provides this as an option. For Vimeo, the button in the bottom right-hand corner should help with that.

Could you try that and let me know if it works?

Regards,

Shannon


author: Paige Tonra
body: The Iframe did allow me to center it, but I am having the same problem as Ketan when I use the Iframe, I cannot make it full screen. There is no option too.

Thanks,

Paige


author: Shannon S
body: [@Ketan Pandit](/t5/user/viewprofilepage/user-id/3656265) and [@Paige Tonra](/t5/user/viewprofilepage/user-id/3410840),

Full screen mode is a setting controlled by the video host itself, and not something you can do within Confluence natively.

In terms of Vimeo, I discovered that there will be no fullscreen option when embedding a Vimeo hosted video in an iFrame:

* [Vimeo Help Center \> Fullscreen button missing from the player](https://vimeo.zendesk.com/hc/en-us/articles/115015759768-Fullscreen-button-missing-from-the-player)

I tested the same for YouTube, and I can confirm that YouTube also disables full screen mode when embedding a video.

In Server, it [might be possible to do this with Javascript](https://www.w3schools.com/howto/howto_js_fullscreen.asp), but Javascript is blocked on Cloud, so the same workaround would not apply. As a workaround in Cloud, you could include a link to the video directly below the iFrame.

Let me know if you have any questions about that.

Regards,

Shannon


author: Paige Tonra
body: Now I can't get it to be centered when using iFrame. In order to center it in the iFrame does it need to be defined in the iFrame settings "align" or when in confluence by clicking the back to center button? Thanks for all your help!

![iframe.png](https://community.atlassian.com/t5/image/serverpage/image-id/75106i930AB3D3BA3FF249/image-size/large?v=v2&px=999 "iframe.png")![Screen Shot 2019-12-04 at 3.49.09 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/75105i4BDCEF719162F528/image-size/large?v=v2&px=999 "Screen Shot 2019-12-04 at 3.49.09 PM.png")


author: Shannon S
body: Hi Paige,

My apologies; the *align* element looks like it actually just aligns in relation to other elements on the page, but not the page itself. So it won't center the iFrame on the page.

I have run some tests, and it appears the best we would be able to do is set the video to the size you want with the macro, and then switch to *Fixed Width* mode:

![CleanShot 2019-12-05 at 14.26.26.png](https://community.atlassian.com/t5/image/serverpage/image-id/75215iC0887F9E367AD24B/image-size/large?v=v2&px=999 "CleanShot 2019-12-05 at 14.26.26.png")

That will cause the video to appear centered on your screen, but not the page itself. It does not appear that you're able to center the iFrame macro itself on the page.

I'm sorry that I'm not able to offer you a better workaround than this, but it looks like even on the old editor this is the closest I was able to get.

Regards,

Shannon


Tags: confluence-cloud

jira-service-desk