<p>I'm asking this question purely from a usability <code>standpoint</code>!</p>

<p>Should a website <code>expand/stretch</code> to fill the viewing area when you resize a browser window?</p>

<p>I know for sure there are the obvious cons:</p>

<ul>
<li>Wide columns of text are hard to read.</li>
<li>Writing html/css using percents can be a pain.</li>
<li>It makes you vulnerable to having your design stretched past it's limits if an image is too wide, or a block of text is added that is too long. <strong>(see it's a pain to code the html/css</strong>).</li>
</ul>

<p>The only Pro I can think of is that users who use the font-resizing that is built into their browser won't have to deal with columns that are only a few words long, with a body of <code>white-space</code> on either side.</p>

<p>However, I think that may be a browser problem more than anything else (Firefox 3 allows you to zoom <strong>everything</strong> instead of just the text, which comes in handy all the time)</p>

<p><strong>edit</strong>: I noticed stack overflow is fixed width, but coding horror resizes. It seems Jeff doesn't have a strong preference either way.</p>

[{'answer_id': 27390, 'author': 'Ed.', 'author_id': 522, 'author_profile': 'https://Stackoverflow.com/users/522', 'pm_score': 1, 'selected': False, 'text': '<p>This is a matter of styling preference.  Both can be equally usable depending on implementation.  Columns can also be used, if the screen gets wide enough.  Personally, I find it annoying when there is a single, narrow column of text going down the screen.</p>\n\n<hr>\n\n<h2>Edit for 2012: Yes, your website should respond to the size of the window it is being displayed in.</h2>\n\n<p>There are many places to read more about this, including:</p>\n\n<ul>\n<li><a href="http://johnpolacek.github.com/scrolldeck.js/decks/responsive/" rel="nofollow noreferrer">http://johnpolacek.github.com/scrolldeck.js/decks/responsive/</a></li>\n<li><a href="http://www.abookapart.com/products/responsive-web-design" rel="nofollow noreferrer">http://www.abookapart.com/products/responsive-web-design</a></li>\n<li><a href="http://en.wikipedia.org/wiki/Responsive_Web_Design" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/Responsive_Web_Design</a></li>\n</ul>\n'}, {'answer_id': 27391, 'author': 'Josh', 'author_id': 2927, 'author_profile': 'https://Stackoverflow.com/users/2927', 'pm_score': 5, 'selected': True, 'text': "<p>Raw HTML does just that.  Are you changing your data so that it doesn't render so good in random sized windows?</p>\n\n<p>In the olden days, everyone had VGA screens.  Now, that resolution is most uncommon.  Who knows what resolutions are going to be common in the future?  And why expect a certain minimum width or height?</p>\n\n<p>From a usability viewpoint, demanding a certain resolution from your users is just going to create a degraded experience for anyone not using that resolution.  Another thing that comes from this is what <em>is</em> fixed width?  I've seen plenty of fixed size windows (popups) that just don't render right because my fonts are different from the designer's.</p>\n"}, {'answer_id': 27395, 'author': 'Booji Boy', 'author_id': 1433, 'author_profile': 'https://Stackoverflow.com/users/1433', 'pm_score': 1, 'selected': False, 'text': "<p>I guess like a lot of things: it depends. I usually do both. Some content stays fixed width to look good or if it can't benefit form more space. other stuff is set to 100% if it seems like it'd be usefull.  </p>\n"}, {'answer_id': 27398, 'author': 'Jonas Follesø', 'author_id': 1199387, 'author_profile': 'https://Stackoverflow.com/users/1199387', 'pm_score': 2, 'selected': False, 'text': '<p>In terms of web site scaling I like fixed sized web sites that scales nicely using the browsers "zoom" function. I don\'t want a really wide page with tiny fonts on my 1920 res monitor. I don\'t know if the web designer has to do anything to make it scale nicely when zoomed, but the zoom in FF3 is awesome, the one in IE7 is useless...</p>\n'}, {'answer_id': 28258, 'author': 'AutomaticPixel', 'author_id': 2501, 'author_profile': 'https://Stackoverflow.com/users/2501', 'pm_score': 1, 'selected': False, 'text': '<p>This should be decided on how complicated the design of your website is. The more complicated, graphically or component wise (amount of content divs), will determine how well your website will scale. Generally you will find most graphic designers website will not scale because they are graphically intensive. However informational website will scale to make the best use of readable space on the screen and are not complicated for ease of use. Its a matter of preference really.</p>\n'}, {'answer_id': 28316, 'author': 'Dillie-O', 'author_id': 71, 'author_profile': 'https://Stackoverflow.com/users/71', 'pm_score': 1, 'selected': False, 'text': "<p>I think it depends on the content of the site. Sites like SOFlow, Forums, and other sites have an emphasis on reading lots of details, so having more real estate to do so is a big benefit in my mind. The less vertical scroll, the better.</p>\n\n<p>However, for sites a little less demanding on the reading level, even blogs or retail sites where you're simply displaying an individual product, having a fixed width allows you to keep things more concise.</p>\n"}, {'answer_id': 33980, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>The important thing is never to have a block of text stretch too wide. If a window is expanded, no block of text should indefinitely stretch to match because reading becomes a difficulty.</p>\n'}, {'answer_id': 45547, 'author': 'paperhorse', 'author_id': 4498, 'author_profile': 'https://Stackoverflow.com/users/4498', 'pm_score': 0, 'selected': False, 'text': "<p>Paragraph widths larger than your display make a web site completely unusable. You have to jiggle the horizontal scrollbar back and forth for every single line you read. I'm doing a web design subject at university and the textbook calls the designs which adapt to your screen width <i>fluid layout</i>.<p>\nI'm designing my big class project using fluid layout, it's a bit more trouble than fixed width. I suspect none of the other students will use it, the markers won't notice and none of the professional sites we're imitating are fluid either.</p>\n"}, {'answer_id': 45610, 'author': 'dbr', 'author_id': 745, 'author_profile': 'https://Stackoverflow.com/users/745', 'pm_score': 2, 'selected': False, 'text': '<p>Like people have said, it really depends on what information the site is displaying. Two good examples are StackOverflow, and Google Images..</p>\n<p>If stackoverflow stretched to fit the screen, longer answers would be annoying to read, because the eye finds it difficult to scan over long lines - this is <em>exactly</em> why newspapers use columns for everything, and why books are the all the same sort of width.</p>\n<p>With Google Images, where the content is basically a bunch of 200px wide images, it stretches to fit the browser width and is still perfectly readable.</p>\n<p>Basically, bear in mind the eye hates reading long lines of text, and base your design on that. You can design your site so when you increase the font size, all the layout scales nicely with it (The only site I can think of that does this is www.geektechnique.org - press <kbd>Ctrl</kbd>+<kbd>-</kbd>/<kbd>=</kbd> or <kbd>Ctrl</kbd>+<kbd>scrollwheel</kbd>, and the layout changes width with the font size)</p>\n'}, {'answer_id': 68776, 'author': 'Jiaaro', 'author_id': 2908, 'author_profile': 'https://Stackoverflow.com/users/2908', 'pm_score': 1, 'selected': False, 'text': "<p>Note: if you use the zoom functionality in your browser, a fixed layout squashes the text, whereas a fluid layout allows it to take up the whole screen.</p>\n\n<p>Maybe this is just a browser problem, but it's definately an argument in favor of fluid</p>\n"}, {'answer_id': 132102, 'author': 'paperhorse', 'author_id': 4498, 'author_profile': 'https://Stackoverflow.com/users/4498', 'pm_score': 0, 'selected': False, 'text': "<p>There's probably a compromise design between fixed and fluid designs. You can design a site fluid-like but set the css property <code>max-width</code> to 1024 (or whatever). This means you get a fluid layout when the <code>window width</code> is less then 1024 and <code>fixed width</code> when it is greater.<p>\nThen narrow screen users (like my 800 pixel eee 701) don't have to twiddle the horizontal scrollbar to read every single line and wide screen users (who don't know how to resize their browser window) don't get 500 character wide, 1 character high paragraphs.</p>\n"}, {'answer_id': 196205, 'author': 'Dave Sherohman', 'author_id': 18914, 'author_profile': 'https://Stackoverflow.com/users/18914', 'pm_score': 1, 'selected': False, 'text': "<p>I'm a big fan of fully-fluid designs.  As to the usability complaints about lines of text that are too long... if they're too long because of the size of my browser window, then I can just as easily make the window narrower as I can make it wider.</p>\n"}, {'answer_id': 216295, 'author': 'Kornel', 'author_id': 27009, 'author_profile': 'https://Stackoverflow.com/users/27009', 'pm_score': 2, 'selected': False, 'text': '<p>The design should be fluid within sensible bounds.</p>\n\n<p>Use CSS has <code>min-width</code> and <code>max-width</code> properties (which work in every browser, including IE7+) to prevent design from stretching too much.</p>\n'}, {'answer_id': 621587, 'author': 'Michael Borgwardt', 'author_id': 16883, 'author_profile': 'https://Stackoverflow.com/users/16883', 'pm_score': 0, 'selected': False, 'text': '<p>I\'d say fluid all the way. <strong>The user can always go back to a smaller size window if he doesn\'t like the result of enlarging it, but he can\'t do anything about a fixed layout.</strong></p>\n\n<p>If you really, really hate the idea of your site looking ugly because of something a user with a large screen does, then for the sake of all that is true and beautiful, at least <strong>never use pixel-based fixed layouts!</strong> CSS has these neat text-relative size units like "em" that allow parts of your page to scale with the font size while others (like images) stay in their "natural" size. </p>\n\n<p>Why not use them and make your page scale well without relying on the less flexible "scale everything" of FF3 that\'s really just a workaround for sites that use a dumb pixel-based fixed layout?</p>\n'}, {'answer_id': 2233432, 'author': 'Lee B', 'author_id': 69148, 'author_profile': 'https://Stackoverflow.com/users/69148', 'pm_score': 0, 'selected': False, 'text': '<p>A lot of people are saying things like "this is a matter of taste" or "I don\'t like big fonts on my high-pixel display."  Number of pixels has nothing to do with it, and it\'s not a matter of taste.  It\'s a matter of DPI, which is directly related to display resolution and font size.  If your layout scales along with the DPI of the fonts (by being specified in ems for instance, and using SVG), then you end up with very beautiful, very crisp websites that work optimally with any display.</p>\n\n<p><a href="http://www.boutell.com/newfaq/creating/anyresolution.html" rel="nofollow noreferrer">http://www.boutell.com/newfaq/creating/anyresolution.html</a></p>\n'}]
['https://Stackoverflow.com/questions/27381', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2908/']