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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:06:21+00:00 2026-06-02T02:06:21+00:00

Thats it really. each image is a button, and I want them to all

  • 0

Thats it really.

each image is a button, and I want them to all fit in the container equidistant

<div class="buttonImgContainer" >
      <span><img class="buttonImg servicesImg" src="Images/services.jpg" alt="" /></span>
      <span><img class="buttonImg galleryImg" src="Images/ProjectGallery.jpg" alt="" /></span>
      <span><img class="buttonImg estimateImg" src="Images/Estimate.jpg" alt=""/></span>
      <span><img class="buttonImg contactImg" src="Images/ContactUsSquare.png" alt=""/></span>
</div>
  • 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-02T02:06:22+00:00Added an answer on June 2, 2026 at 2:06 am

    it turns out that I was quite close with my prior answer. This unequivocally does it:

    .buttonImgContainer span {
        width: 25%;
        float: left;
    }
    
    span{
        text-align: center;
    }
    

    here’s a .jsFiddle for the solve.

    In my case, I am using <span>s, which are inline. text-align: center; is badly named, as it will align images as well. That was the missing piece of the puzzle.. The name threw me off.

    Each span is set to 25% of its parent <div>, which, in turn, I have made smaller than the page, showing the spans are keyed to that element.

    in my fiddle, if you resize the columns, you will see the buttons move to their proper place in relation to the containing div, .buttonImgContainer.

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

Sidebar

Related Questions

Thats it really.. I am using VS2008 Express. All the samples say just to
OK I've got 2 really big classes > 1k lines each that I currently
I have a script that generates two lines as output each time. I'm really
Hey there, I'm a designer thats really new to programming with xcode or Objective-C
I have an UIImageView on my view. Certain parts of that image, I want
I'm into a problem that I can't really understand. I want to include directly
I have multiple buttons, each having a 32x32 pixels PNG image. The strange thing
I'm using JavaScript to hide an image and show some text thats hidden under
Trying to automatically wrap all image tags within a field that's currently managed with
Im trying to make it so that on a press of a image button

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.