/    Sign up×
Community /Pin to ProfileBookmark

page becomes bigger when i press button or press f12

hello

right now i have this page:

[url]http://u402695.gluweb.nl/game1.html#[/url]

but when you press F12 or press the button bekijk hier de code voor de auto

my sites becomes bigger for some reason

then when i refresh the page it goes back to normal

but how can i solve this:

game1.html:

[url]http://pastebin.com/5KT03Gve[/url]

initresize.js

[url]http://pastebin.com/bKSGGUZc[/url]

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@Sup3rkirbyJan 20.2015 — In your initresize.js script, there is a variable (sizeMax) which is set to 20. When you click on your button at the bottom of the page, that script changes the <body> tag's font-size from 15pt to 20pt (the sizeMax value). When this happens, it affects the widths of your elements on the page because they are using EMs for their width.

EMs change based on the font-size of the document or their parent element. So when you change the font-size of the <body>, anything that uses EMs will change too.
Copy linkTweet thisAlerts:
@thebest07111authorJan 20.2015 — so i need to change the sizemax to 15 i geuss?
Copy linkTweet thisAlerts:
@thebest07111authorJan 20.2015 — yes that works

thanks
×

Success!

Help @thebest07111 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...