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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:10:33+00:00 2026-05-26T16:10:33+00:00

i got a tricky situation here. im trying to center 3 divs inside my

  • 0

i got a tricky situation here. im trying to center 3 divs inside my footer and they need to have dynamic width, like min-width.

[cotainer           [first]        [second]         [third]         /container]

my setup is this

<footer>
  <div id="container">
     <div id="first"></div>
     <div id="second"></div>
     <div id="third"></div>
  </div>
</footer>

footer #container { width: 800px; margin: 0 auto; }

#container #first,#container #second,#container #third
{
  float: left;
  min-width: 200px;
  height: 25px;
  background: /* image url */
  padding: 4px;
  margin: 0 20px 0 0;
}

#container #third { margin-right: 0; }
  • 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-26T16:10:33+00:00Added an answer on May 26, 2026 at 4:10 pm

    What about using display: inline-block? You can see a jsFiddle of it here:

    http://jsfiddle.net/S7bKT/1/

    HTML

    <div id="container">
       <div id="first">
          Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
          Aliquam scelerisque euismod auctor. Sed pulvinar nulla eu 
          lorem iaculis ultrices. Mauris
       </div>
       <div id="second">Lorem ipsum dolor sit amet</div>
       <div id="third">Sed pulvinar nulla eu lorem iaculis ultrices</div>
    </div>
    

    CSS

    #container {
       width: 500px;
       background: #dedede;
       margin: 0 auto;
       text-align: center;
    }
    
    #first, #second, #third {
        display: inline-block;
        min-width: 50px;
        max-width: 120px;
        min-height: 100px;
        zoom: 1; /* Fix for IE */
        _display: inline; /* Hack for IE */
        margin-right: 20px;
        vertical-align: top;
    }
    
    #first {
        background: #f00;
    }
    #second {
        background: #0f0;
    }
    #third {
        background: #00f;
    }
    
    #container div:last-child {
        margin-right: 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, got a tricky one here... If my data looks like this: Table1 ID
I have a tricky situation here. I have a web service written in C#
Got a slightly tricky problem I'd like some advice on. I have a source
We've got into a very tricky scenario in a project. We have used lot
I've got a rather tricky problem that I've been trying to solve for the
Alright, so here is the situation... Say I have a navbar for a site,
I got a tricky problem here: in my app, there's a list (using a
So, here is my situation : I've got a Java application that is sending
Got kind of a tricky problem. I'm working on a project where we need
I've got a Wix situation that seems like its solution might be the combination

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.