Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: incrediBILL

Message Too Old, No Replies

Page width and height...

how do i set the page width and height in IE?

     
3:03 am on Jul 24, 2003 (gmt 0)

New User

10+ Year Member

joined:July 24, 2003
posts:3
votes: 0


i want to set the width and height of a page, but not via a link but inside the page itself, so that the browser recognises the size and changes, don't know if this is possible, can anyone help me out? thanks
2:43 pm on July 24, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Welcome to Webmaster World!

You can specify the height and width through style sheets.

html, body {
height: 100%;
width: 455px;
}

2:46 pm on July 24, 2003 (gmt 0)

Full Member

10+ Year Member

joined:May 22, 2003
posts:278
votes: 0


i guess you are using tables right? use % values in the hieght and width field. Make us of background images as far as possible and check at different screen resolutions to see if it's coming right.
3:20 pm on July 24, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 14, 2002
posts:157
votes: 0


HTML elements used to be as high as their content, so setting height: 100% makes sense only if the container have its hight set in other unit than percents. AFAIK there is no common way (except javascript) to set an element's hight to be 100% of the view port.
6:28 pm on July 24, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


AFAIK there is no common way (except javascript) to set an element's hight to be 100% of the view port.

Ehm, setting the body (and html) height to 100% applies to the viewport... Then you can just set a child element to 100% as well.

4:33 am on July 26, 2003 (gmt 0)

New User

10+ Year Member

joined:July 24, 2003
posts:3
votes: 0


sorry, i don't know muc about web pages except for HTML, im learning slowly. i meant the browser window size and position on a users screen no matter what screen resolution, and i don't mean to not write the code myself, but can someone direct me to something like this, or has anyone come across javascript that could help me, oh and DrDoc, does style sheets change browser info or just what is on the page?
thanks for any information
8:31 am on July 26, 2003 (gmt 0)

Full Member

10+ Year Member

joined:May 1, 2003
posts:340
votes: 0


Actually, you'd probably be better off not doing this. Most people (myself included) become very anoyed when their browser window is resized by the website they are on. It makes many people feel uncomfortable, causing them to possibly leave your site.
2:05 am on July 27, 2003 (gmt 0)

New User

10+ Year Member

joined:July 24, 2003
posts:3
votes: 0


i want to be able to do the same thing as this site: <snip> if you get what i mean

[edited by: tedster at 2:18 am (utc) on July 27, 2003]

2:12 am on July 27, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:May 14, 2003
posts:376
votes: 0


nzguy,

have you not simply looked at their sourcecode in their page to understand how they are doing it? even their .js files can be viewed from your cache or even with a non-rendering browser like samspade...