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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:09:53+00:00 2026-06-13T14:09:53+00:00

#buttoncontainer { position: absolute; top: 15%; left: 23%; width: 200px; height: 500px; } .buttons

  • 0
#buttoncontainer {
    position: absolute;
    top: 15%;
    left: 23%;
    width: 200px;
    height: 500px;
}

.buttons {
    position: absolute;
    display: block;
    width: 70px;
    height: 70px;
    font-family: DancingScript-Regular;
    font-size: 100%;
    padding-top: 50px;
    background-color: rgba(255,255,255,.0);
    padding: 15px 15px;
    border: 5px solid white;
    border-radius: 70px;
    box-shadow: 0px 0px 5px 5px #000000, 0 0 5px 5px #888 inset;
    left: 15%;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
}

.buttonText {
    text-align: center;
    display: block;
    padding: 25px;
    width:  70px;
    height: 70px;
    font-size: 100%;
    text-decoration: none;
    color: white;
}


#b11 {
    top: 30px;
}

#b22 {
    top: 170px;
}

#b33 {
    top: 305px;
}



        <div id="buttoncontainer">
            <div class="buttons" id="b11">
                <a href="#b11" id= "b1" class="buttonText">Upload</a>
            </div>
            <div class="buttons" id="b22">
                <a href="#b22" id="b2" class="buttonText">Refresh</a>
            </div>
            <div class="buttons" id="b33">
                <a href="#b33" id="b3" class="buttonText">Logout</a>
            </div>
        </div>

I am trying to make the element fill up its parent container. But for some reason it doesn’t align itself- as a whole block element inside/center of it’s container, but instead pushes itself downwards and to the right. Can’t figure out what I am doing wrong.

EDIT: I forgot to mention that I need the padding to center the text vertically in the bubble. I also tried padding-top: 25px; an still no success on centering the a block element.

EDIT2: I added text-align: center which centers the text correctly in the a element, but again the a element is not centering inside the 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-13T14:09:53+00:00Added an answer on June 13, 2026 at 2:09 pm

    Here is a Working Demo

    Do this in your CSS –

    .buttons { text-align: center;
        position: absolute;
        display: block;
        width: 70px;
        height: 70px;
        font-family: DancingScript-Regular;
        font-size: 100%;
        padding-top: 50px;
        background-color: rgba(255,255,255,.0);
        padding: 15px 15px;
        border: 5px solid white;
        border-radius: 70px;
        box-shadow: 0px 0px 5px 5px #000000, 0 0 5px 5px #888 inset;
        left: 15%;
        -webkit-transition: all .3s ease-in-out;
        -moz-transition: all .3s ease-in-out;
    }
    
    .buttonText { /*    
        width:  70px;
        height: 70px;*/
        display: inline-block;    
        padding: 18px 0 0 0;
        font-size: 100%;
        text-decoration: none;
        color: black;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dropdown bar - <div class=buttonContainer> <ul> <li> <a class=menu1one href=>Dashboard</a> </li>
I'm trying to have three columns. The left and right columns contain a button
I'm trying to style some buttons with CSS and my button container is an
I have a parent div #modal_share with a defined height of 400px . I
$(div#buttonContainer ul li).live(click,function(){ if($(this).hasClass('selected')){ alert('selected'); } }); <div id=buttonContainer> <ul> <li class=selected></li> <li></li> <li></li>
I would like to set navBar buttons like safari as following image shows. However
Here's my tooltips markup and CSS: <div class=tooltip>Click here to like it</div> .tooltip {
<%@ Page Title= Language=C# MasterPageFile=~/Masterpages/main.Master AutoEventWireup=true Inherits=KPIGen.admin.Data_Parameter_List Codebehind=Data_Paramater_List.aspx.cs %> <%@ MasterType VirtualPath=~/Masterpages/main.Master %> <%@
So heres my problem. On the first fire of my code it works perfect
I am using EXT-js for a project, usually everything is pretty straight forward with

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.