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