JavaScript Code for automatic Resize??/

I am looking for a script, that will allow me to have the content automatically fit the browsers window, without having to scroll left and right…


its not a script its jus the way you set the hieght and width in the CSS that does that.

I haven’t learned CSS yet. That is one of my plans for this summer. Could you explain this?

wait wat do u mean do u want to resize pictures or the actual page. CSS is for the page jus set ur width to 100%

Auto-resizing the page width to be say 100% of the browser window is easy. The simpliest way of doing it is to use this code:

<style type="text/css">
body {

However, you would be better to use an external CSS stylesheet. If you visit’s CSS section, you should find a bunch of easy to learn CSS tutorials that can help you. :wink:

We’re ever the img tag is for the image put a style tag in it like this:

<img style=“width: 100%;” src=“picture.gif”/>

Or in your CSS file add this,

img {

That will make all images that big. ie. Whenever the <img … /> tag is used.