![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
You can determine the viewport size, too vpWidth=document.all?document.body.clientWidth:win dow.innerWidth; |
#6
| |||
| |||
|
|
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 |
#7
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |