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 6917645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:45:23+00:00 2026-05-27T09:45:23+00:00

If one uses float:left to layout two columns, does the left column have to

  • 0

If one uses float:left to layout two columns, does the left column have to have a width specified? Without a width assigned, when I shrink the width of the browser page, the second (main) column gets put underneath the left (navigation) column. Is there a way to avoid this, without assigning a width? If not, what is the least width spec’s I need to add? I.e. can I assign a fixed pixel width to the left column, and have the right column get the rest?

Thanks

—– Addition —–

After trying various answers, noting their complexity, is there any reason not to just use a two column table?

  • 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-27T09:45:24+00:00Added an answer on May 27, 2026 at 9:45 am

    This answer does not match the original question, which indicates to use float:left, the “generation 2” css layout mechanism after tables. However, after trying multiple variations and tweaks to the float:left layout given, and none of them working totally correctly, I tried a two column table. Using that the width of the two elements don’t need to be specified, the second element never appears below the first, and scrollbars are added as needed, with the right column content never being cut off and unscrollable.

    Thanks everyone for your help. I must say, I feel in some cases the “generation 2” css spec with the addition of the floating layouts, really has made things unnecessarily complex to use, if it can even work at all, e.g. like in my case, where I don’t know the content of the right column (as this page is a template, holding variable right column content). In this case, I could not get any of the answers to work, with the closest being Ryan’s, but in some cases the content at the right would get clipped off, and was not scrollable.

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

Sidebar

Related Questions

I have 2 canvases, one uses HTML attributes width and height to size it,
I have two programs. the only difference is that one uses constant memory to
I have two examples here, only difference between these two example are one uses
I have a custom spinner that uses two custom views, one for the drop
I have one application which uses the standard .NET forms authentication cookie, now I
We have an app that uses simple one way binding with a GridView to
I have some page elements which are meant to appear in a two column
I have a div which contains two nested divs, one that specifies a height
I have two textboxes which uses the same class (they both need to be
The problem we have is reduced to the following two statements: select convert(float, (convert(float,5741.61)/convert(float,

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.