homepage Welcome to WebmasterWorld Guest from 107.20.131.154
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Page width and height...
how do i set the page width and height in IE?
nz guy20012002




msg:615815
 3:03 am on Jul 24, 2003 (gmt 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

 

DrDoc




msg:615816
 2:43 pm on Jul 24, 2003 (gmt 0)

Welcome to Webmaster World!

You can specify the height and width through style sheets.

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

seofreak




msg:615817
 2:46 pm on Jul 24, 2003 (gmt 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.

marek




msg:615818
 3:20 pm on Jul 24, 2003 (gmt 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.

DrDoc




msg:615819
 6:28 pm on Jul 24, 2003 (gmt 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.

nz guy20012002




msg:615820
 4:33 am on Jul 26, 2003 (gmt 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

hartlandcat




msg:615821
 8:31 am on Jul 26, 2003 (gmt 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.

nz guy20012002




msg:615822
 2:05 am on Jul 27, 2003 (gmt 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]

wkitty42




msg:615823
 2:12 am on Jul 27, 2003 (gmt 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...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved