...

View Full Version : Help on Body Code



enemeth
05-21-2007, 07:42 PM
Hi there,

I was wondering if anyone can help me with an issue im facing
i am creating a website and would like the page to load to fit to size, so if the user has 800X600 the page will get smaller to fit to his browser settings, or display settings.... ?

anyone have a script or setting that i can use or put in the html code ?

Thx ;)

Elaine

Rubby
05-24-2007, 09:23 PM
This isn't a Java issue. What you're asking can be done with CSS using width: x%; or width: xem; type stuff. Try reposting it there.

whizard
05-25-2007, 05:00 AM
CSS code:


body
{
width:100%;
}


HTH
Dan

ronaldb66
05-25-2007, 09:15 AM
Please DO NOT repost a thread in another forum; if the forum a thread is posted in is not fitting, a moderator can move it to an appropriate one.
Posting the same or similar threads in multiple forums is not allowed.

koyama
05-26-2007, 03:52 AM
CSS code:


body
{
width:100%;
}


Hmm... I'm not sure that would make much difference. Basically, this would be the same as not specifying any width (if we don't have any margin/padding/border for the body element).

A fluid layout will automatically fit to the width of the window. If you want a fixed-width-layout with width dependent on screen resolution, then you would need JavaScript for detection of client-side properties.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum