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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:51:57+00:00 2026-06-13T02:51:57+00:00

I seem to be having a problem stacking 3 divs side by side. I’ve

  • 0

I seem to be having a problem stacking 3 divs side by side. I’ve went through a few different pages that gave me codes and tips for how to do this but for some reason it doesn’t come out right. Here is the div code I am using in my page, and the info for the divs from the style sheet. Hoping someone can help me out with a fix to what I am doing wrong.

I decided to make another edit because I really didnt give enough info, I have 3 divs side by side but they seem to stick together and one is different, I want them to evenly space to fit flush with the rest of the layout. I have a link to the site so you can see what I have what I have

Also sorry about the mix up with the # missing from the #t2 on the post I accidentally deleted it when making the post its in the code.

<div id="testwrap">
    <div id="t1">left</div>
    <div id="t3">right</div>
    <div id="t2">middle</div>
</div>

#testwrap {
width: 933px;
margin-right: auto;
margin-left: auto;
}

#t1 {
width: 311px;
margin-right: auto;
margin-left: auto;
background-color: #FFF;
height: 220px;
margin-top: 20px;
margin-bottom: 20px;
float: left; width:311px;
padding: 10px;
}
 #t2 {
background-color: #FFF;
height: 220px;
width: auto;
padding: 10px;
margin-top: 20px;
margin-right: auto;
margin-bottom: 20px;
margin-left: auto;
}
#t3 {
background-color: #FFF;
height: 220px;
width: 311px;
margin-right: auto;
margin-left: auto;
margin-top: 20px;
margin-bottom: 20px;
width:311px;
float: right; width:311px;
padding: 10px;
}
  • 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-06-13T02:51:58+00:00Added an answer on June 13, 2026 at 2:51 am

    Here’s a clean working code (Your code is so messy). You can copy paste this to your HTML document. Just change the background color of the divs to your liking.

    http://jsfiddle.net/K3FJe/

    HTML

    <div id="testwrap">
        <div id="t1">left</div>
        <div id="t2">middle</div>
        <div id="t3">right</div>
    </div>​
    

    CSS

    #testwrap {
        width: 933px;
        height: 280px;
        margin: 0 auto;
        background: black;
    }
    
    #t1, #t2, #t3 {
        height: 220px;
        padding: 10px;
        color: #FFF;
        float: left;
    }
    
    #t1 {
        width: 273px;
        margin: 20px 6px 20px 12px;
        background-color: red;
    
    }
    
    #t2 {
        width: 279px;
        margin: 20px 6px 20px 6px;
        background-color: blue;
    }
    
    #t3 {
        width: 273px;
        margin: 20px 12px 20px 6px;
        background-color: green;
    }​
    

    I updated it with even spaces between them, I think this should work.

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

Sidebar

Related Questions

I seem to be having a problem with a macro that I have defined
I seem to be having a problem. I want to write some code that
Having a problem at the moment that many of my pages load [using GooglePageSpeed]
I seem to be having a problem that jScrollPane doesn't seem to load on
been having this problem for a few days now and can't seem to find
I seem to be having a problem with my SQL query that's driving me
I seem to be having a problem removing the image in UIScrollView. I was
I seem to be having a problem checking if a string exists in my
I seem to be having a problem with checking for list equality. In my
I seem to be having a problem with my footer growing to 100% width

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.