Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4270594
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:19:39+00:00 2026-05-21T07:19:39+00:00

I’m coding my first liquid layout and I have to say it’s a lot

  • 0

I’m coding my first liquid layout and I have to say it’s a lot more time-intensive than a fixed width layout. However, I see the advantages and so I’d like to make it work!

Here’s my situation:

  • I have a header with some text in that makes the header of variable height depending on the browser text size.
  • I have a fixed-width nav on the left. The nav is floated left and has a negative margin the same number of pixels as the width which effectively makes it slot into a zero-width space. Neat!
  • I have my main content section which is floated right. It has a left margin the width of the nav so the content avoids hiding underneath the links of the nav.
  • The nav comes second in the source so the users of assistive tech get to the content first.

This works great but only if the content of the main content section has lines of text that wrap around the full width of the page. If the content in only short lines or a list the content section’s width is the same as the content within it. As the content section is floated right it means the content looks wrong in these situations. Obviously the page width is variable and so for larger monitors this problem is more common.

I’m looking for a way of showing the content section filling the page at all times so that the content will sit on the left and fill out to the right even when the lines are short. I’ve tried absolute positioning but that messes up the footer which stays in the right place by clearing the floated nav and content section.

Any suggestions would be really useful!

Edit:

As requested I’ve provided some demo pages.

Here is a page which has wide content and looks OK: http://www.qkschool.org.uk/static/redesign/widepage.html

And here is a page with thin content which is all right-aligned because of the float: http://www.qkschool.org.uk/static/redesign/thinpage.html

Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:19:40+00:00Added an answer on May 21, 2026 at 7:19 am

    This has always been a favorite source of mine for liquid layouts:

    http://matthewjamestaylor.com/blog/perfect-3-column.htm

    (Make sure to click around for all the different variations)

    I’m not saying you should abandon learning yourself, but I think it’s worth a look at some of the tricks used in those layouts. All of them work great in IE6 and IE7 as well, and use good content-first source order. They can be easily turned into fixed-width if needed. I honestly have never found another layout that I like as much as the ones posted on this website.

    One variation I use with these layouts is wrapping every column with an extra inner div, and setting the margin or padding on this div and nothing else, this will make the width and positioning calculations a lot simpler (you’ll see if you check it out). I also wrap the entire thing in a div for easier max-width and centering.

    Good luck and let me know if you need any advice with this technique, I’ve been using it for years and it has served me well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.