I want to use all space available on my website and i'm building a new layout. My question is what is the max width available for an 1024 width resolution. I read somewhere that this width is 960px, other source said 950... but for i think there is 1000px available (in windows). I am wrong?... on Mac sidebar is bigger (or linux)? I never used those SO.
Maximum width for layout
Started by
Guest_johnny.dacu_*
, Jul 28 2010 08:58 AM
4 replies to this topic
#1
Guest_johnny.dacu_*
Posted 28 July 2010 - 08:58 AM
Guest_johnny.dacu_*
|
|
|
#2
Posted 28 July 2010 - 03:38 PM
It depends somewhat on the browser. FireFox vs IE vs Safari vs ???
#3
Posted 29 July 2010 - 12:27 AM
can't you use "100%" instead of "y px"?
#4
Guest_johnny.dacu_*
Posted 30 July 2010 - 07:39 AM
Guest_johnny.dacu_*
i don't want to use a fluid layout because a don't want to have problems on higher resolutions.
#5
Posted 30 July 2010 - 08:17 AM
It would indeed depend on the browser. You can access the width of the browsers viewport / innerwidth trough javascript: Get viewport size (width and height) with javascript - Javascript - Blog / Andy Langton's Website
And then use this width to set the width of the div or another element. This would however also depend on resolutions. I guess you could try to find it with javascript on a 1024 screen, and then "alert" the width or show it and then you can test it for various browsers.
Once you know the width for various browser -> With javascript you can also check in which browser it is running and set the width dynamically dependant on the browser, not dependant on the resolution.
And then use this width to set the width of the div or another element. This would however also depend on resolutions. I guess you could try to find it with javascript on a 1024 screen, and then "alert" the width or show it and then you can test it for various browsers.
Once you know the width for various browser -> With javascript you can also check in which browser it is running and set the width dynamically dependant on the browser, not dependant on the resolution.


Sign In
Create Account

Back to top










