Mashiane Expert Licensed User Longtime User Jan 29, 2020 #1 Hi there Is it possible to set and fix the browser window when my BANano app starts so that the browser is at 80% Zoom? If possible, please help out with a code snippet please? Thanks
Hi there Is it possible to set and fix the browser window when my BANano app starts so that the browser is at 80% Zoom? If possible, please help out with a code snippet please? Thanks
alwaysbusy Expert Licensed User Longtime User Jan 29, 2020 #2 You don't have access to the browsers 'zoom' from within a page (good thing!) If it is Chrome only, you can use the "zoom: 80%" style on e.g. one of the top html tags. As for all browsers, zoom can't be used (not supported). You then can use this (but it has not exactly the same effect as zoom): Code: Copy -moz-transform: scale(0.8);-ms-transform: scale(0.8);-webkit-transform: scale(0.8);-o-transform: scale(0.8);transform: scale(0.8); must be used together with for example here center top as point of origin: Code: Copy -moz-transform-origin: 50% top;-ms-transform-origin: 50% top;-webkit-transform-origin: 50% top;transform-origin: 50% top; Upvote 0
You don't have access to the browsers 'zoom' from within a page (good thing!) If it is Chrome only, you can use the "zoom: 80%" style on e.g. one of the top html tags. As for all browsers, zoom can't be used (not supported). You then can use this (but it has not exactly the same effect as zoom): Code: Copy -moz-transform: scale(0.8);-ms-transform: scale(0.8);-webkit-transform: scale(0.8);-o-transform: scale(0.8);transform: scale(0.8); must be used together with for example here center top as point of origin: Code: Copy -moz-transform-origin: 50% top;-ms-transform-origin: 50% top;-webkit-transform-origin: 50% top;transform-origin: 50% top;