Automatic ZOOM'ed In Possiblity?

Go down

In progress Automatic ZOOM'ed In Possiblity?

Post by SpyroDragon on January 6th 2015, 12:10 pm

When on chrome.. my site looks like it has a lot of Empty Space on 100% Zoomed ( Default )



But what my intensions were on the theme was to be like this on All Browsers.. is there a code that will zoom people with higher Resolution screens to be like this instead?
avatar
SpyroDragon
Forumember

Posts : 372
Reputation : 2
Language : English

http://SpyrosForum.com/

Back to top Go down

In progress Re: Automatic ZOOM'ed In Possiblity?

Post by Ange Tuteur on January 7th 2015, 3:49 am

Hello @SpyroDragon,

You can try this for Chrome if you like. Go to Modules > JavaScript codes managament > Create a new script

Title : Your choice
Placement : In all the pages
Code:
navigator.userAgent.indexOf('Chrome') > -1 && $(function() { document.body.style.zoom = '160%' });

To modify the zoom level, change 160%.
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

In progress Re: Automatic ZOOM'ed In Possiblity?

Post by SpyroDragon on January 7th 2015, 9:03 am

What about for All Browsers too?

And on Chrome it screws up the Social Widget...

avatar
SpyroDragon
Forumember

Posts : 372
Reputation : 2
Language : English

http://SpyrosForum.com/

Back to top Go down

In progress Re: Automatic ZOOM'ed In Possiblity?

Post by Ange Tuteur on January 8th 2015, 4:47 am

Try this for IE and Chrome, for Firefox the "Zoom" property is not supported.
Code:
$(function() { document.body.style.zoom = '160%' });

Websites can look different due to multiple factors :
• Resolution of the screen
• Viewpoint of the browser
• The user's preferences

I don't recommend using "zoom" for the body, because everyone has their own preferences, but if it's what you want.. Wink
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

In progress Re: Automatic ZOOM'ed In Possiblity?

Post by SpyroDragon on January 8th 2015, 6:49 am

theres also a lot of problems when you try uploading picture via servimg ..-- too many problems I just gave up on this..
avatar
SpyroDragon
Forumember

Posts : 372
Reputation : 2
Language : English

http://SpyrosForum.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum