Responsive iFrame for HTML Page Snippet in Creator
Responsive iFrame for HTML Page Snippet in Creator
The code below is a single <div> containing a single iFrame/Report.
- <style>
- .parent-container {
- display: flex;
- width: 100%;
- height: calc(100vh - 120px);
- }
- .child-container {
- flex: 1;
- margin: 10px;
- }
- </style>
- <div>
- <iframe src="https://creatorapp.zoho.com/App_Admin/App_Name/view-embed/Report_Name" frameborder="0" allowfullscreen></iframe>
- </div>
The code below is a single <div> containing two separate iFrames/Reports, as seen in the photo examples.
- <style>
- .parent-container {
- display: flex;
- width: 100%;
- height: calc(100vh - 120px);
- }
- .child-container {
- flex: 1;
- margin: 10px;
- }
- .child-container:first-child {
- flex: 0 0 60%;
- margin-right: 5px;
- }
- </style>
- <div>
- <iframe src="https://creatorapp.zoho.com/App_Admin/App_Name/view-embed/Report_Name" frameborder="0" allowfullscreen></iframe>
- <iframe src="https://creatorapp.zoho.com/App_Admin/App_Name/view-embed/Report_Name" frameborder="0" allowfullscreen></iframe>
- </div>
Page Setup Steps:
- Add a Page to your app
- Add an HTML Snippet to the page
- Add the code above
- Customize to your needs