Pros And Cons Of 6 CSS Layout Patterns: Part 1 | Van SEO Design |
Pros And Cons Of 6 CSS Layout Patterns: Part 1 Posted: 25 Apr 2011 05:30 AM PDT There are a number of css layout patterns you can use when developing a website. Your design could be of fixed-width or it could be fluid or elastic. It might even be a hybrid layout or be responsive to different devices. What are the pros and cons of some of the common css layouts available to us? Are some layouts preferred over others? 6 CSS LayoutsYou’re likely familiar with all of the css layouts below, but to make sure we’re on the same page, let’s quickly define each.
Pay attention to the difference between fluid/liquid layouts and elastic layouts. In both widths are measured relatively. The difference is that fluid layouts are measured relative to something external to the design (browser window), while elastic layouts are measured relative to something internal to the design (font-size). Fixed-Width LayoutsFixed-width layouts are static. Based on some data about your audience’s resolution you design for an optimum width. Typically you center the design to split the external whitespace for large resolution browsers. The overall width might be based on either internal or external things. Fixed-width layouts are probably the most common layouts you see online today. Pros:
Cons:
Control and cost are the main reasons fixed-width layouts are so popular. They would also naturally appeal to anyone moving to the web after experience with print design as a fixed-width is a given condition in print. Fluid or Liquid LayoutsFluid layouts are usually created by setting the body to be 100% of the width of the available window and then have all other measurements expressed in some % of the body width. The width of the design is then adjustable by adjusting the width of your browser. All dimensions in a liquid or fluid layout are relative to the browser window. Proportion is retained with respect to browser size. Pros:
Cons:
Fluid layouts solve some of the problems of fixed layouts creating new problems as they do. The loss of control can be designed for to a point. For example the measure of a line of text in fluid designs often grow too wide to be comfortably read. The solution is to give those areas a max-width or to somehow constrain widths in the design, which takes us back toward a fixed width-layout to some degree. Elastic LayoutsElastic layouts are similar to fluid layouts with one important difference. The measurements in elastic layouts are relative to some internal part of the design, usually the font-size of the main copy. The ‘em’ is typically the unit of measurement in elastic designs, though % are mixed in where appropriate. Pros:
Cons:
Elastic layouts tend to look like fixed-width layouts with the ability to change dimensions based usually on the size of the font. This makes a lot of sense from a design standpoint as it offers control where necessary and flexibility where it makes sense. Proportions are always maintained to something internal and so the design can better maintain unity. At the same time visitors can make adjustments to help them interact with the design. Hybrid LayoutsAs the name implies hybrid layouts are a mix of fixed, fluid, and elastic design elements. By selectively deciding which areas of your design should be static and which should be flexible you can reign in some of the problems of all three types of layouts. Fixed-Width with Fluid BackgroundThese layouts are mainly fixed, but allow their backgrounds to stretch to the edges of the browser window. This gives the design an initial impression of being fluid, while still maintaining control over the design. Another common approach with this layout is to allow header, footer, or both to be fluid while keeping main content and sidebars fixed. Pros:
Cons:
Fixed-width, fluid background designs maintain control over most of the design, while allowing some parts of the design to be fluid in order to make the complete design seem more flexible. Fluid/ElasticFluid/elastic layouts make use of min and max widths in order to allow flexibility while still having some final control over the design. You allow your design to scale up or down, but only within set ranges of values that you define with min and max widths. Pros:
Cons:
Overall hybrid layouts seek to keep the benefits of fluid or elastic layouts while minimizing some of their downsides such as a complete loss of control over design elements. Hybrid designs give up control where it’s less important to maintain in order to have greater control where it’s more important to maintain. SummaryFixed-width, fluid/liquid, elastic, and hybrid layouts each offer a solution to different problems designing for the web. Multiple devices, browsers, and resolutions make control over a design more difficult. Too much control takes away flexibility from your audience. Of the four fixed-width is probably the most common due to its predicability and ease of development. It’s how I’ve built most sites over the years and perhaps how you have as well. Personally I’ve never cared for fluid layouts as they seem to cause more problems than they solve. Fixed and fluid will probably give way to elastic and hybrid layouts as the latter two are able to keep most of the pros of the former, while minimizing some of their cons. Though more complicated than their counterparts they each is worth the effort when time and budget allow. Next time we’ll look at the other 2 layouts, responsive, and fluid/elastic grids. The later is less of an overall layout and more something you would add to fluid or elastic layouts to remove some of the cons of each. I’ll also add some additional thoughts on when you might decide to use each layout. |
You are subscribed to email updates from Van SEO Design » Blog To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |