Aligning Dashboard on Portal - iframe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 08:37 AM - edited 12-05-2023 08:39 AM
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 07:08 PM
You can align the content in your iframe using left, right, middle, top, and bottom.
<iframe align="left|right|middle|top|bottom">