HighDots Forums  

Easy Question

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Easy Question in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
butlerb77 webforumsuser@macromedia.com
 
Posts: n/a

Default Easy Question - 11-19-2003 , 11:14 AM






Is there a way within Dreamweaver MX to automatically check the screen resolution of the browser being used to view the website and adjust the site accordingly? So it does not look so large on an 800x600 screen resolution?

Just wondering.
Thanks




Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: Easy Question - 11-19-2003 , 11:22 AM






Quote:
Is there a way within Dreamweaver MX to automatically check the screen
resolution of the browser being used to view the website and adjust the site
accordingly?

You can check screen resolution via javascript, but there is no way to
adjust the site accordingly because you need to know the user's browser's
view port...not the screen resolution.

The easy answer is to just design around the constraint that your site may
be viewed in an infinite number of browser sizes.

-Darrel




Reply With Quote
  #3  
Old   
mrichmond webforumsuser@macromedia.com
 
Posts: n/a

Default Re:Easy Question - 11-19-2003 , 11:30 AM



You should be designing your pages to be fluid so that they look good at all resolutions.

Look at these pages :

http://www.thepattysite.com/window_sizes1.cfm

http://www.dwfaq.com/tutorials/Tables/flexible_tables.asp

Also DW cannot make a change on a client machine. You would have to use javascript.


--Megan Richmond

Reply With Quote
  #4  
Old   
mick_white
 
Posts: n/a

Default Re: Easy Question - 11-19-2003 , 03:05 PM



You can determine the viewport size, too
vpWidth=document.all?document.body.clientWidth:win dow.innerWidth;

The problem is IE, the viewport dimensions are only available after the
page is loaded.
Mick

darrel wrote:

Quote:
Is there a way within Dreamweaver MX to automatically check the screen


resolution of the browser being used to view the website and adjust the site
accordingly?

You can check screen resolution via javascript, but there is no way to
adjust the site accordingly because you need to know the user's browser's
view port...not the screen resolution.

The easy answer is to just design around the constraint that your site may
be viewed in an infinite number of browser sizes.

-Darrel







Reply With Quote
  #5  
Old   
darrel
 
Posts: n/a

Default Re: Easy Question - 11-19-2003 , 03:20 PM



Quote:
You can determine the viewport size, too
vpWidth=document.all?document.body.clientWidth:win dow.innerWidth;
Good to know, though you still have the inevitable problem that the viewport
size tends to be much more dynamic than a person's monitor resolution is. Of
course, like you say, only knowing this info AFTER the page renders in IE
isn't terribly useful, but I suppose you could make some sort of best-guess
intro page of some sort.

-Darrel




Reply With Quote
  #6  
Old   
mick_white
 
Posts: n/a

Default Re: Easy Question - 11-19-2003 , 03:35 PM



Any pages that you deliver, other than the opening page, you will know
the view port size.
And "max-width" property of a block element(CSS-2) could be very useful.
I came up with a workaround:
http://www.mickweb.com/demos/maxWidth.html
Mick

darrel wrote:

Quote:
You can determine the viewport size, too
vpWidth=document.all?document.body.clientWidth:win dow.innerWidth;



Good to know, though you still have the inevitable problem that the viewport
size tends to be much more dynamic than a person's monitor resolution is. Of
course, like you say, only knowing this info AFTER the page renders in IE
isn't terribly useful, but I suppose you could make some sort of best-guess
intro page of some sort.

-Darrel







Reply With Quote
  #7  
Old   
darrel
 
Posts: n/a

Default Re: Easy Question - 11-19-2003 , 04:22 PM



Quote:
Any pages that you deliver, other than the opening page, you will know
the view port size.
Unless they change the viewport while browsing, which isn't uncommon as
people move windows around, show/hide the FAVORITES pane, etc.

Quote:
And "max-width" property of a block element(CSS-2) could be very useful.
I came up with a workaround:
http://www.mickweb.com/demos/maxWidth.html
I do agree that there could be usefulness out of knowing the viewport size.
That's a great demo page!

-Darrel




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.