Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Aligning Dashboard on Portal - iframe

JJG_SNOW
Mega Guru

I have a dashboard on a Portal page. I am achieving this via an HTML widget with an iframe.

 

iframe:

 

<iframe style="height: 1000px; width: 2000px;" src="/$pa_dashboard.do?sysparm_dashboard=a2b8497547f2bdd06fdc7134846d43ab" width="100%" height="100%" frameborder="1"></iframe>

 

 

As you can see, I have the width set to 2000px. This is the width I want for the dashboard, but when I check the Portal, the dashboard is being pushed off to the right side. It looks very strange and I need it to be aligned with the center of the page. How can I fix this?

 

 

Dashboard being pushed to the right side:

 

JohnGilmore_0-1701794336595.png

 

1 REPLY 1

Ethan Davies
Mega Sage
Mega Sage

You can align the content in your iframe using left, right, middle, top, and bottom.

<iframe align="left|right|middle|top|bottom">