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

The Archive Base Latest Questions

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

I am using jquery.alerts on my website and I am having a few issues

  • 0

I am using jquery.alerts on my website and I am having a few issues with setting some things.
I can not seem to get the buttons centered in the box, and I would also like to add more padding between the two buttons.

The easiest way to view what I’m talking about, is by simply going to the website at http://www.beerbattle.net/skunk/ and clicking on the ‘Forgot password?’ link. You will see exactly what I’m talking about.

As for the CSS of the jquery.alerts, it is as follows:

#popup_container {
font-family: Arial, sans-serif;
font-size: 12px;
min-width: 400px; /* Dialog will be no smaller than this */
max-width: 600px; /* Dialog will wrap after this width */
background: #FCCB6C;
border: solid 2px #000;
color: #000;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
height: 130px;
}

#popup_title {
font-size: 14px;
font-weight: bold;
text-align: center;
line-height: 1.75em;
color: #000;
background: #FBB62D url(images/title.gif) top repeat-x;
border: none;
border-bottom: solid 1px #999;
cursor: default;
padding: 0em;
margin: 0em;
}

#popup_content {
background: 16px 16px no-repeat url(images/info.gif);
padding: 1em 1.75em;
margin: 0em;
}

#popup_content.alert {
background-image: url(images/info.gif);
}

#popup_content.prompt {
background-image: url(images/help.gif);
}

#popup_message {
padding-left: 48px;
}

#popup_panel {
text-align: center;
margin: 1em 0em 0em 1em;
}

#popup_prompt {
margin: .5em 0em;
}

.buttons a, .buttons button{
background: #b55100;
border: none;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
-khtml-border-radius: 20px;
border-radius: 20px;
color: #ffffff;
display: block;
font: 18px Georgia, "Times New Roman", Times, serif;
letter-spacing: 1px;
margin: auto;
padding: 7px 25px;
text-shadow: 0 1px 1px #000000;
text-transform: uppercase;
text-align: center;
float: left;
}
.buttons button{
width:auto;
padding:4px 10px 3px 7px; /* IE6 */
}
.buttons button[type]{
padding:5px 10px 5px 7px; /* Firefox */
line-height:17px; /* Safari */
}
*:first-child+html button[type]{
padding:4px 10px 3px 7px; /* IE7 */
}
.buttons button:hover {
background: #fbb62d;
cursor: pointer;
}

I had tried changing float: left; to middle, but it makes the buttons appear one above the other for whatever reason.
Any help is greatly appreciated. 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-26T03:15:24+00:00Added an answer on May 26, 2026 at 3:15 am

    You can do this by changing three styles for .buttons a, .buttons button (only in the context of this dialog, if necessary). Change these lines:

    .buttons a, .buttons button {
        display: block;
        margin: auto;
        float: left;
    }
    

    To these:

    .buttons a, .buttons button {
        display: inline-block;
        margin: -5px 5px 0 5px;
    }
    

    So that’s changing display from ‘block’ to ‘inline-block’, changing margin from ‘auto’ to ‘-5px 5px 0 5px’ (adujust as necessary to get the spacing how you want), and removing float altogether.

    More detailed explanation: The reason the buttons were all the way over to the left even though you had text-align: center; in the containing element is because of the float: left;. But getting rid of that made them display as full-width blocks one on top of the other, and block elements don’t respond to text-align of containing elements, only inline elements respond to that. That’s why you change display: block; to `display: inline-block;’. That way that act like blocks for most things, but act inline for positioning. So after those two changes, the buttons are aligned in the bottom center, one next to the other. The margin change is just to add space between them and center them better in the dialog.

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

Sidebar

Related Questions

Using jQuery , how can I dynamically set the size attribute of a select
I am using jquery ajax $.get which calls a php script on my server
I'm using jQuery to setup a timer or interval loop on a few elements
I'm using jQuery + PHP on my website and I want to do something
I am using jQuery and I need to get the local time for Germany.
I'm struggling with some validation using jQuery's validator plugin. Basically I'm checking if username
I'm having trouble updating the DOM when doing an AJAX post using JQuery. This
I am writing the a generic function for my website using jquery which would
Hello i am using jquery serialscroll on my website. In one of its JavaScript
I need to loop through my website using jquery and change the class selector

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.