Sunday, November 28, 2010

Know About CSS Layout Types and Their Uses

WHich is the ideal width of web sites ?
Most of the new designers have this common question. So i decide to write about this topics to gives them idea about width of web sites.Theres are variations in monitor display resolutions. We designers need to decide first How i am gonna represent my site content to users.To do this we need to know first that there are three primary layout types available to design a website. After reading this article any of you can decide which one you can use for your design.


1. Fixed-width Layout (Using pixel-based units for the dimensions of the page)
2. Liquid or Fluid Layout (Using %-based units)
3. Elastic Layout (Using em-based units)

Lets start seeing more details with examples to undetstand what those means.

1. Fixed-width Layout

As the name suggests fixed layouts stop the web browser from having the freedom to format text as it sees fit, This is one of the most popular techniques on the web, with websites such as facebook and the BBC applying the design. This basically means that the width your content is contained and stays fixed no matter what, this is typically achieved using something called a wrapper, or container, which holds all the content within it. The fixed width design can be set to the left, center or right of the a page, very easily.

The real bonus of working with a fixed width design is that you can set imagery and design around the consideration that your width will always be the same. This is a real positive if you want a banner image, for example, which needs to be 900px, you will not have to problems when resizing, issues which you would encounter with a fluid design.

The downside of a fixed design however is the dead space that you are left with where your design does not fill the page. A fixed-width design can also force designers to prioritize. As a site grows and content competes for top placement, it must still fit within a specific width.



2. Liquid or Fluid Layout (Using %-based units)

The most relaxed method of providing a dynamically expanding or contracting design makes use of the ever-popular percentage (%) unit measurement.

This layout type has gained mass popularity because it is the ultimate way of allowing the total opposite of a fixed layout where the content will simply take whatever space is available to it.

Absolute LayoutsPercentages require careful calculation as you can’t give more than 100% without issues!

The limited guarantees you hold on the viewport being used goes beyond screen resolutions (imagine your site on a 6-inch screen versus a 100-inch screen, even just at 80% width).

Though it goes without saying that a liquid layout is useful in almost every web-based situation because it adjusts its width depending on how big or small the user’s viewport is — so it’s definitely worth looking into.


3. Elastic Layout (Using em-based units)

An elastic layout scales with users’ text size.

More accurately, an elastic interface scales with browser text size—commonly a default of 16px—which users can change if they wish. Some people make a permanent change for accessibility reasons, others use the UI controls to increase text size if they need to.

Elastic design uses em values for all elements. Ems are a relative size, written like this: 1em, 0.5em, 1.5em etc. Ems can be specified to three decimal places like so: 1.063em. “Relative” means:

   1. They are calculated based on the font size of the parent element. E.g. If a 
<div> has a computed font size of 16px then any element inside that layer —a child— inherits the same font size unless it is changed. If the child font size is changed to 0.75em then the computed size would be 0.75 × 16px = 12px.
   2. If the user increases (or decreases) text size in their browser, the whole interface stretches (or shrinks.)


25 comments:

  1. I generally prefer to use Fixed-width Layout because it allows direct control over how the page will look in most situations.

    ------------
    Web Developer Los Angeles

    ReplyDelete
  2. This is a nice article. Thanks for sharing your thoughts. Web developers love to use CSS because it allows them to position their element where ever they want in the web page.

    ReplyDelete
  3. Hello friend, you have present the article in very informative & comparative way that is really an excellent work

    Website Designer Australia

    ReplyDelete
  4. A visually appealing website must have a great design. And usually with a great design, comes great images. And with great images, comes loading time. And with loading time, comes slow pages. ect, ect. Images are key in most web designs, so it’s always important to keep in mind how to optimize your images for the best user experience.

    ReplyDelete
  5. These are some useful ideas, when I first created my website I didn't spend any time looking into CSS layouts. After reading this, it's given me a few ideas and I have some more spare time so I'll maybe look into changing a few layouts and have a play around with it all.

    ReplyDelete
  6. Your blog is awesome! I love that you not only capture street style, but you write a short description about the actual person. Awesome!

    ReplyDelete
  7. Thanks guys. Sorry for late reply. Actually i am not maintain this blog for long time. But recently you guys Inspired me by your valuable comments. So Thanks again and i will try to post more good article soon.

    ReplyDelete
  8. Wonderful article. Author made excellent efforts to make this article so interesting.Thanks!

    Banking Resume Templates

    ReplyDelete
  9. Thanks for sharing those web tool with us . It could help us .
    web design company

    ReplyDelete
  10. This is a beneficial material, overall I imagine this is worth a bookmark,I always enjoy your posts.
    Web Shopping Cart

    ReplyDelete
  11. Thank you for such a comprehensive explanation about web page layouts, now I can really differentiate the web pages for separate layouts.

    ReplyDelete
    Replies
    1. Nice article! You discussed clearly CSS layout types and their uses. This article is useful for the learners.

      Robert
      Web Design

      Delete
  12. The post is giving information about css layout types and their factors is described here

    ReplyDelete
  13. thank you for such a know about css layout types and web page layouts information helpful the my blog.
    Web designing course in Chandigarh

    ReplyDelete
  14. Replies
    1. This is a cool and nice post ever.I was looking at some of your posts on this website and I conceive this web site is really instructive.

      Delete
  15. Great post i ever seen. Thanks alot for sharing this. I would really like your post ,it would really explain each and every point clearly well thanks for sharing.
    website design

    ReplyDelete
  16. Excellent post, thanks for taking the time to get as much information about it……..We are good Manufacturer, exporter and Supplier of
    Tertiary Butylhydroquinone ,
    tbhq ,
    TBHQ ,
    Direct Black 22
    Chemicals Exporter
    dichlone .

    ReplyDelete
  17. Nice Tips! As an expert in web design I can surly say that these are really helpful for newbies. You have covered all the points which should keep in mind to create a good website.Bangalore Web Designing

    ReplyDelete
  18. Thanks so much with this fantastic new web site. I’m very fired up to show it to anyone. It makes me so satisfied your vast understanding and wisdom have a new channel for trying into the world. freelance web developer bangalore

    ReplyDelete
  19. Great blog. Thank you for sharing this very informative and educational blog.

    Web Design Fort Lauderdale

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete