/    Sign up×
Community /Pin to ProfileBookmark

resizing browser window!

Hello,

I have a quite interesting design from my point of view, but it has a small issue: the maximum screen width can’t be wider than 1500px.
I do want some help here.
I would like for somebody to share with me a script which detects the visitors screen resolution and if the screen resolution is higher than 1500px ( for example ) the screen resolution should be re-sized to the maximum point, 1500px in my case.
I’m noob in what Javascript means, so I could really use some help.

Thanks!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@mrhooFeb 12.2010 — Modern browsers allow the user to maintain the window at the size he prefers, so the browser is not growing and shrinking as he navigates the web. Make the max-width of the body element 1500px instead.
Copy linkTweet thisAlerts:
@SebahauthorFeb 12.2010 — @mrhoo

Thanks for your reply.

The thing is that I'm using 'positioning: absolute' and the page should work as well on bloody IE 6 ?
Copy linkTweet thisAlerts:
@mrhooFeb 12.2010 — if(screen.width>1500)document.body.style.width=1500px;
×

Success!

Help @Sebah 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.6,
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,
)...