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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:31:49+00:00 2026-05-15T22:31:49+00:00

not sure why this isn’t working– i have 3 divs where the two on

  • 0

not sure why this isn’t working– i have 3 divs where the two on the side are empty, and all my content in the middle. IE6 is apparently ignoring the empty divs, as the content is pushed to the left. Any ideas what the problem could be?

.sidebar {
float: left;
width: 25%;
height:auto;
visibility:hidden;
font-size:1px;
line-height:0;
}

.main {
width: 50%;
height:auto;
float:left;
}
<div class="sidebar"><p> </p></div>
<div class="main">
...
</div>
<div class="sidebar"><p> </p></div>

I’ve tried putting empty comments instead of empty paragraphs in the divs, tried putting   in the divs, anything the internet said to do, to no luck. let me know if you want to see the content in the main.

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-15T22:31:50+00:00Added an answer on May 15, 2026 at 10:31 pm

    I believe this is a situation where if the divs on the side are going to remain empty, you’ll have to specify height or at least a min-height to make it show up. Alternately, again if they’re going to remain empty, you could simply remove them and use margin: 0 auto 0 auto to center your middle column. IE6 in particular has some issues with non-breaking spaces that can cause all sorts of weird things to happen, but only in certain specific versions of IE6. Ahh, the joys of browsers.

    Note that height:auto won’t stretch anything if it doesn’t know what to stretch to, just like height: 100% won’t work without a div of known size to 100% to. From your question it doesn’t seem like you’re trying to stretch it to fill the screen, but it’s something to be aware of.

    A css framework such as 960.gs, YUI grids, or Blueprint would make this a cakewalk…I’m just sayin’

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

Sidebar

Related Questions

Not sure why this isn't working... I have several DIVs with an class of
I'm not sure why this isn't working. I don't have any errors, but what
I'm not sure why this isn't working. I have a record list of text
Not sure why this isn't working. I have a timer defined, which runs a
I'm not sure why this isn't working as it is working in another area
Not sure why this isn't working. It was working perfectly and then I restarted
Not sure why this isn't working. When people click the 'edit' button of my
I'm not sure why this code isn't working. . . I can't find the
I'm not really sure why this isn't working, hopefully you can help me find
I'm not sure why this isn't working today, I've done very similar a few

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.