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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:26:28+00:00 2026-05-23T02:26:28+00:00

I am attempting a very simple procedure here, basically trying to center the client

  • 0

I am attempting a very simple procedure here, basically trying to center the client logos within this main clients div. I’ve just recently started with this web design business and while I can read some of the solutions out there, I’m having trouble applying them to my structure.

Basically I have a few client boxes, each is going to have a PNG image inside of them:

            <div id="clients">
                <div class="client-box">CLIENT LOGO</div>
                <div class="client-box">CLIENT LOGO</div>
                <div class="client-box">CLIENT LOGO</div>
                <div class="client-box">CLIENT LOGO</div>
                <div class="client-box">CLIENT LOGO</div>
            </div>

I’d like to be able to center the client-box’s on the client’s div that has a fixed weight. I’ve tried using display: inline-block but that didn’t seem to do much. I’m assuming that’s because I’ve already forced them to float: left but I don’t know how I can maintain their position in the div without doing so. Like I said I’m quite a novice with CSS and this is what I’ve been doing for all my CSS.

Here’s what I have for clients and client-box CSS:

           #clients {
           background-image: url("img/images/clients_bg.png");
           border-bottom: 1px solid #333333;
           border-top: 1px solid #666666;
           float: left;
           margin-top: 120px;
           padding: 10px;
           width: 778px;
           }
           .client-box {
           background: none repeat scroll 0 0 #bcb546;
           float: left;
           font-family: verdana;
           font-size: 11px;
           height: 60px;
           margin-right: 10px;
           opacity: 0.8;
           padding-top: 40px;
           text-align: center;
           width: 100px;
           }
           .client-box:hover {
           opacity: 1;
           }

From my understanding, this shouldn’t be hard to achieve, but so far I have not had any luck probably because my brain is fixated on a certain way of doing things and it just won’t budge. Any help would be greatly appreciated.

You can see the live site here.

Thank you SO.

  • 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-23T02:26:29+00:00Added an answer on May 23, 2026 at 2:26 am

    I’ve tried using display: inline-block
    but that didn’t seem to do much.

    float: left forces display: block, so display: inline-block would have no effect.

    On .client-box, you need to:

    • remove float: left
    • add display: inline-block.

    Finally, on the parent element (#clients), you need to add text-align: center.

    enter image description here

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

Sidebar

Related Questions

I'm attempting to make a very simple 2-person chatroom for my Django site. I'm
I'm attempting to build a very simple wxPython GUI that monitors and displays external
I am attempting to create a very simple web interface for changing some system
I am attempting to use the Browser control in a very simple WPF application,
I am attempting to write a very simple rake task (and merge it into
I am attempting to construct a very simple proof of concept that I can
I'm attempting to solve what I thought would be a very simple problem. I
I am trying to implement something seemingly very simple, and I have been beating
I am using mongoid on rails3. I am attempting to perform a very simple
I am attempting to implement a very simple Trie in Java that supports 3

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.