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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:06:18+00:00 2026-06-14T18:06:18+00:00

I have the following fiddle: My Button Bar My problem is a common one,

  • 0

I have the following fiddle: My Button Bar

My problem is a common one, though inline-block is not helping like I hoped. How do I make the anchor and the button the same size. The blue buttons need to be contained within the gray bar, they should have a small border, and be the same size, as you would totally expect from a button bar.

It only really has to work in firefox and chrome. We are not bothering with IE anymore (Chrome Frame).

The html looks like this:

<div class="buttons">
    <button class="inline-button" type="submit" name="action" value="Update"><span data-icon="icon-cog">icon</span>Save</button>
    <a href="#"><span data-icon="icon-cog">icon</span>Cancel</a>
</div>

The CSS I am using is as follows:

div.buttons a, div.buttons button[type=submit] {
  position: static;
  display: inline-block;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  outline: 0;
  vertical-align: baseline;
  height: 100%;
  font-family: PTSansBold;
  font-size: 12pt;
  text-align: left;
  background-color: #051DC3;
  color: white;
  padding: 4px;
  margin: 3px;
  width: 8em;
  border: none;
  text-decoration: none;
}

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-06-14T18:06:19+00:00Added an answer on June 14, 2026 at 6:06 pm

    Demo

    Hi now try this css This is Css3 Box-sizing : border-box

    div.buttons a, div.buttons button[type="submit"]{
    -moz-box-sizing:border-box;
        box-sizing:border-box;
            -webkit-box-sizing:border-box;
        vertical-align:top;
    }
    

    Demo


    more about this box-sizing

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

Sidebar

Related Questions

I'm not sure what im missing here I have the following JS fiddle: http://jsfiddle.net/thetylercox/eeMva/3/
I have the following javascript code found also in this fiddle: http://jsfiddle.net/periklis/k4u4c/ <button id
I have following fiddle: http://jsfiddle.net/BFSH4/ As you see there are two issues: The h1
I have the following fiddle for people to see http://jsfiddle.net/defaye/DhaHP/4/ The result on full
I have following div in a page (I can not modify). <div id=:0.control>Click me</div>
I have made the following fiddle: http://jsfiddle.net/hxQE4/ See how the right arrow pushes the
Consider the following Fiddle: http://jsfiddle.net/wNrqu/ For the last 4 hours I have been trying
I have created the following fiddle: http://jsfiddle.net/cgoddard/eceGc/1/ And I was wondering what needed to
I have an HTML CSS Query. I have the following JS Fiddle. http://jsfiddle.net/NC9NL/ If
I have the following fiddle setup http://jsfiddle.net/Wap43/3/ I can't get the bars to shade.

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.