ShoaibF Posted December 28, 2022 Share Posted December 28, 2022 (edited) Hey guys, I have an embedded Google Sheets page on my website, which refuses to scale and centre in the code block that I have placed it in. The goal is to have the image/text from the Google Sheet centred on the page and automatically scaled depending on the device size so that the user can see the entire image without scrolling. At the moment, on a desktop, it does not centre. On a phone, it does not scale and shows the horizontal scrolling bar. Site URL: https://www.cycaswj.com.au/prayer-times This is what code I have in the HTML Code Block: <div id="prayer-time-table"> <iframe id="scaled-prayer-times" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vSEIDa9hA05m0NpIz3nUl7gG_84uNqbG1jSMcuG4Exe_PjCr1b4tkuImuqF9fS4OZF0xwOFu0byUKzd/pubhtml?gid=1418347722&single=true&widget=false&chrome=false&headers=false"> </iframe> </div> This is the CSS for the sections: #prayer-time-table { height: 822px; padding: 0; overflow: hidden; } #scaled-prayer-times { width: 100%; height: 100%; border: none; } I have tried using <center> tags and adding position: to the CSS, and have scoured the web thoroughly and cannot find anything that applies here. Thanks in advance for your help! Edited December 28, 2022 by ShoaibF Added site URL Link to comment
tuanphan Posted December 30, 2022 Share Posted December 30, 2022 Can you check url? I don't see Google Sheets now Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ShoaibF Posted January 12 Author Share Posted January 12 The blue table that you see is the google sheet embedded. It’s an image with some text overlays on it Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment