Jump to content

Maximum width for layout

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Guest_johnny.dacu_*

Guest_johnny.dacu_*
  • Guests
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.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It depends somewhat on the browser. FireFox vs IE vs Safari vs ???
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,086 posts
can't you use "100%" instead of "y px"?

#4
Guest_johnny.dacu_*

Guest_johnny.dacu_*
  • Guests
i don't want to use a fluid layout because a don't want to have problems on higher resolutions.

#5
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,086 posts
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.