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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:28:21+00:00 2026-06-07T04:28:21+00:00

I have searched for ages looking for an answer to this question! I am

  • 0

I have searched for ages looking for an answer to this question!

I am using a 12 column layout for a new website I’m making. I have 4 divs on 1 row:

<div class="colContainer">
        <div class="row">
            <div class="threecolImg">
                <p>Row 1: three</p>
            </div>
            <div class="threecolImg">
                <p>Row 1: three</p>
            </div>
            <div class="threecolImg">
                <p>Row 1: three</p>
            </div>
            <div class="threecolImg last">
                <p>Row 1: three</p>
            </div>
        </div>
    </div>

And my CSS is as follows:

.colContainer {
padding-left: 20px;
padding-right: 20px;
}

.row {
width: 100%;
max-width: 1140px;
min-width: 755px;
margin: 0 auto;
overflow: hidden;
}

.threecolImg {
float: left;
min-height: 1px;
width: 22.05%;
}

as it stands the divs are all next to each other (which is good!) but not centered (which is bad!)

could some one help me to centre them?!

Many Thanks,

Paul

  • 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-07T04:28:22+00:00Added an answer on June 7, 2026 at 4:28 am

    Replace all your threecolImg divs with threecol divs. And they will be centered.

    <div class="colContainer">
        <div class="row">
            <div class="threecol">
                <p>Row 1: three</p>
            </div>
            <div class="threecol">
                <p>Row 1: three</p>
            </div>
            <div class="threecol">
                <p>Row 1: three</p>
            </div>
            <div class="threecol last">
                <p>Row 1: three</p>
            </div>
        </div>
    </div>
    

    Also remove from your CSS :

    .threecolImg {
      float: left;
      min-height: 1px;
      width: 22.05%;
    }
    

    And if you want to style images in threecol divs, prefer that selector :

    .threecol img {
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This must be obvious, but I have searched for ages and can find no
I have searched around for an answer to this but can't find one. When
I have searched but cant find this question anywhere. My wife and I are
I have searched Google and Stackoverflow for this question, but I still don't understand
I have searched high and low for documentation on how to use this feature.
I have searched the internet for an answer to what could be causing EXCEPTION_ACCESS_VIOLATION
I have searched a bit on google, but didn't really found an answer to
I have searched a lot about the difference between Website and WebApplication but didn't
(have searched, but not been able to find a simple solution to this one
I have searched for an answer but am not finding it. I have 2

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.