www.webdeveloper.com
Results 1 to 4 of 4

Thread: resizing browser window!

  1. #1
    Join Date
    Feb 2010
    Posts
    14

    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!

  2. #2
    Join Date
    Feb 2006
    Posts
    2,926
    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.

  3. #3
    Join Date
    Feb 2010
    Posts
    14
    @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

  4. #4
    Join Date
    Feb 2006
    Posts
    2,926
    if(screen.width>1500)document.body.style.width=1500px;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles