Welcome to WebmasterWorld Guest from 107.22.7.35

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)

10+ Year Member



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 Jul 24, 2003 (gmt 0)

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



Welcome to Webmaster World!

You can specify the height and width through style sheets.

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

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

10+ Year Member



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 Jul 24, 2003 (gmt 0)

10+ Year Member



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 Jul 24, 2003 (gmt 0)

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



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 Jul 26, 2003 (gmt 0)

10+ Year Member



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 Jul 26, 2003 (gmt 0)

10+ Year Member



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 Jul 27, 2003 (gmt 0)

10+ Year Member



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 Jul 27, 2003 (gmt 0)

10+ Year Member



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...

 

Featured Threads

Hot Threads This Week

Hot Threads This Month