[css-d] Displaying page in different resolutions

2006-07-26 Thread Audano, Chris
Is there a way to easily program a site to automatically determine the
users resolution?
 
This is primarily for our intranet.  We have about half of our users
still using a 800x600 resolution and the others 1024x768 or higher.  
 
I'm using a container for the content so those users with 1024 or higher
have a large blank border.  Here is a sample of our intranet
http://www.opnetks.org/Information_Technology/Index.cfm.
 
Any suggestions would be appreciated.
 

Chris Audano
City of Overland Park
Information Technology
913-895-6069
[EMAIL PROTECTED] 
Director, National Association of Government Webmasters
 
  

 
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Displaying page in different resolutions

2006-07-26 Thread Christian Heilmann
> Is there a way to easily program a site to automatically determine the
> users resolution?
>
> This is primarily for our intranet.  We have about half of our users
> still using a 800x600 resolution and the others 1024x768 or higher.
>
> I'm using a container for the content so those users with 1024 or higher
> have a large blank border.  Here is a sample of our intranet
> http://www.opnetks.org/Information_Technology/Index.cfm.
>
> Any suggestions would be appreciated.

The resolution is pretty useless to know, as you cannot expect all
users to run their browser full-screen and not windowed.

CSS cannot read any setting, you'd need to use JavaScript for that.

Cameron Moll has done a JS that assigns different CSS according to browser size:
http://themaninblue.com/writing/perspective/2006/01/19/



-- 
Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Displaying page in different resolutions

2006-07-26 Thread Martin Heiden
Chris,

on Wednesday, July 26, 2006 at 15:56 Audano, Chris wrote:

> Is there a way to easily program a site to automatically determine the
> users resolution?

Why? Make your layout liquid! Just get rid of the width on the
container and use some repeating background images instead of fixed
ones. Define some margins for the container and a min- and/or
max-width. For making this work in IE < 7.0 you can use expressions.

Al Sparber wrote a tutorial an a DW Extension for things like this:

http://www.projectseven.com/tutorials/css/minwidth/index.htm


regards

  Martin

 



__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/