Jump to content

layout - fixed width or percentage?


AP81

Recommended Posts

Hi guys,

 

Just wondering if most of you use fixed pixel widths for your layout containers, for example a basic layout consisting of:

 

a container which has a header section, main content section and footer section

 

Given the above I would set the container, header, main content & footer sections to a fixed width.  Any div column layouts in the header/main/footer I would then use percentages.

 

Is this the best way for browser compatibility?  (I am more a back-end developer and haven't done any solid HTML for a while)

Link to comment
Share on other sites

I've been moving more toward fluid designs recently. IMO they work better across multiple platforms. A few reasons being font size, margins, padding, etc. can change from browser to browser, so by allowing the body to fill the width of the screen instead of a fixed width has helped me some.

 

But on the other hand, it really depends on the site and what you're page is displaying. If it's paragraphs and paragraphs of text, I'd go with a fluid width. If it's a menu with some images stacked vertically, maybe fixed width is your best option so the menu text doesn't wrap if the user changes the dimensions.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.