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

  • Home
  • SEARCH
  • 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 6933701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:51:57+00:00 2026-05-27T11:51:57+00:00

this may sound simple, I have made a div block which consists of buttons

  • 0

this may sound simple, I have made a div block which consists of buttons which should be lying horizontally one after another. The buttons are used for navigation and the number of buttons changes dynamically depending on the web pages.

Now my problem is to align these buttons center at the bottom of every page above the footer note and the alignment should also be in the flow depending upon the increase or decrease of the buttons.

<div class="container">
    <div class="content">
    </div>
    <div class="navButtons">
        <a href="back.php"><input type="button" value="BACK" class="butttons" /></a>              
        <a href="home.php"><input type="button" value="HOME" class="butttons" /></a>
        <a href="next.php"><input type="button" value="NEXT" class="butttons" /></a> 
    </div>
</div>

I have tried using margin: 0 auto;

margin-left: auto;
margin-right: auto;

But no success, they just stick to the left side of the page.

Here is the CSS for:

.container{    
    background: url('images/gray_bg.jpg');
    width: 900px;
    height: 800px;
    margin: 0 auto;        
    position: relative;
    overflow: auto;      
}

.navButtons{
    margin: 0 auto;
    float: left;         
}

Any good ideas of how this can be solved

Thanks

  • 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-27T11:51:57+00:00Added an answer on May 27, 2026 at 11:51 am

    Seeing as < anchor > tags are inline items you can just do:

    div.navButtons {
        text-align: center;
    }
    

    see this fiddle to see what i mean: http://jsfiddle.net/c4urself/ZvrZW/

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

Sidebar

Related Questions

This may sound easy, but please, I am a newbie. I have a simple
Hey this may sound simple but it escapes me, I have a list of
This may sound like a simple question which I'm sure has a simple solution,
I wanted someone to resolve my confusion on this topic. It may sound simple,
This may sound like a very generic question but here it goes. I have
ok not as simple as title may make it sound. I tried this in
I'm fairly new to directx so this may sound really basic. I have started
Hy, i have a big question ... it may sound simple but actually it's
This may sound very simple and off the track, but any help will be
This may sound like a simple question but as am newbie in Webservies and

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.