Is there is a Java Script that will Find is Res of the screen and resize mysite to fit

Hi all
I know it is not a good fix but i need this as a quick one to make it work, i was wonding if there was a java script out there that i can add to my site so it resizes it to fit on there screen, i need this one in a rush as i need to show the client tomorrow, he failted to tell me and even in the spec that there is a screen size he wanted

any help would be great
Who is Participating?
AmickConnect With a Mentor Commented:
Size information is available in the screen object.

alert('Screen resolution is '+screen.width+'x'+screen.height)

You may use this information to direct your user to an appropriate page, resize your browser window, or to modify the content of your web page.

Resize window:

Modify HTML:
There is no way of knowing what the script needs to change without seeing HTML and CSS.  If elements dimensions are expressed in percentages then all that is needed is to set the width if the body to 100%.  However if there are fixed dimensions on all or some elements or if absolute positioning is used, then it will required detailed scripting for each such page.

So what exactly does the code currently look like?

awolarczukAuthor Commented:
i am at work atm and will show you the code tonight thanks for the feed back
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.