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

  • Home
  • SEARCH
  • 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 7128421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:08:13+00:00 2026-05-28T11:08:13+00:00

So basically the website I’m designing has 3 divs inside a container div. One

  • 0

So basically the website I’m designing has 3 divs inside a container div. One floating to the left. Two to the right one above and one below. They work fine when the browser is maximized. Problem is, when the browser is resized, the right divs wrap below the left div even though I’ve set min-widths. I want the divs to remain where they are and a scroll bar to appear instead. I did try overflow, no luck. Any solutions?

PS- Initially I had added min-width for the inner divs too. They didn’t seem to solve the problem, so I removed them.
A solution or a nudge in the right direction would be really appreciated.

Here’s a link to the jsFiddle – http://jsfiddle.net/R62w4/3/

Thank you, Matthew. Although that fixed the wrapping issue, my site now has a thin line of pixels on the right hand side. Any idea how I remove it? It continues from the header till the footer. It isn’t affected by any changes to the CSS elements pertaining to the header or navigation bar or footer.

Okay, I found the reason to the extra space on the right side. If I increase my margins for the outer div, the space increases. Is there a way to increase the margins without getting a space?

  • 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-28T11:08:13+00:00Added an answer on May 28, 2026 at 11:08 am

    You might be able to wrap them in this:

    <div style="white-space:nowrap;">
    
    </div>
    

    … to prevent that from happening.

    It’s hard to know exactly where the problem is, could you post some code or make a JSFiddle?

    Update:

    I believe the problem is that you are using % based widths and px for margins – it’s easy to lose track of how much available space you have and subsequently your layout falls apart. Consider that two left floated DIVs of 50% width with 1px of margin each will break on to two lines every time because that’s more than 100%.

    I changed your fiddle a bit: http://jsfiddle.net/R62w4/5/

    … just by moving the left margin from your first DIV and right margin from your other two to the parent container seems to give enough room for everything.

    P.S. You can use % based margins and just make sure everything you want to be on one line stays <= 100%.

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

Sidebar

Related Questions

Basically, we have an ASP website right now that I'm converting to PHP. We're
I have a web site with two routes. Basically the user can do one
Basically, what I'm trying to create is a page of div tags, each has
Basically our website is listed in Google but the URL only has ourdomain.com whereas
I am working on a website which basically has a form and includes a
Basically I have a website that lists out the files in the directory above
Basically I'm laying out a website and I'm using DIV's to have a header,
Hey I am completely lost with this one. Basically the website i'm working on
Basically I have a website. I have a properly setup sitemap so I assume
Basically I am creating a database driven website in Web Developer 2008. The database

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.