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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:15:59+00:00 2026-05-24T14:15:59+00:00

I know there must be a simple way to do this but for the

  • 0

I know there must be a simple way to do this but for the life of me I can’t figure it out.

I have a three column layout with a fluid center column and what I need to do is to take 3 images and distribute them evenly across the center div – such that the center image is always in the center of the center column (i.e. the center of the page) and the left image is justified left and the right image justified right.

the page uses a stripped down version of the faux absolute positioning demo as a framework, and there is no problem implementing that – but what I need is a self-contained way to arrange these three objects within the center div (column).

I have tried putting them in an Unorded List but when I float the elements to the left – well then they are floated to the left and no longer centered in the div.

I also tried doing it without the ul but have so far been unsuccessful.

any help here would be appreciated.

  • 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-24T14:16:01+00:00Added an answer on May 24, 2026 at 2:16 pm

    Let’s say this is your markup:

    <div class="wrapper">
        <img class="first">
        <img class="second">
        <img class="third">
    </div>
    

    There are many ways to accomplish this, here is one way using known widths of the images:

    img {
        width:100px;
        display:block;
    }
    .first {
        float:left;  
    }
    .second {
        float:right;
    }
    .third {
        margin:0 auto;
    }
    

    Demo: http://jsfiddle.net/wY6AS/

    Here’s another way with absolute positioning, and known widths:

    .wrapper {
        padding:10px;
        position:relative;
    }
    
    img {
        width:100px;
        height:100px;   
        display:block;
    }
    .first {
        position:absolute;
        top:10px;
        left:10px;
    }
    .third{
        position:absolute;
        top:10px;
        right:10px;
    }
    .second {
        margin:0 auto;
    }
    

    Demo: http://jsfiddle.net/wY6AS/1/

    I wish I could make more demos and give better explanations, but I’ve got to run. Known widths makes it easy, but it is still not all that difficult with unknown widths, using display:inline-block and text-align:center on the parent element in combination with floats or absolute positioning, for example.

    I don’t want to suggest tables, but that’s an option too if you are really desperate and can’t get another method to work. Check out the CSS display properties that emulate table behavior as well.

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

Sidebar

Related Questions

I know there must be a simple way to do this but I couldn't
I'm just to figure out what does this method do, I know there must
I know there have been a few threads on this before, but I have
I know this might ma a simple question, it must have been answered before
I know that there must be some differences. I have a Silverlight component (
I know websphere does it, so there must be something that lets apache figure
I am using this layover plugin to display content: http://jquery.com/demo/grey/ I know there must
I'm sure this is a simple issue, but I have noticed that when I
This is a very simple task in every language I have ever used, but
I am sure there will be articles around this but I really don't know

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.