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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:01:36+00:00 2026-06-11T22:01:36+00:00

I have 5 <a> tags with a class that puts a box with border

  • 0

I have 5 <a> tags with a class that puts a box with border around the word. I had to make the boxes very big and the text centers horizontally with text-align: center but not vertically.

I tried vertical-align to no success. How can I target the text to move into the middle of the box?

HTML

<a href="#" id="someid1" class="someclass">Small</a>
<a href="#" id="someid2" class="someclass">Medium</a>
<a href="#" id="someid3" class="someclass">Large</a>

etc etc

CSS

#container a.someclass { border:1px #ACACAC solid;text-align:center; }
  • 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-11T22:01:37+00:00Added an answer on June 11, 2026 at 10:01 pm

    The line-height parameter rocks (if your menu items don’t go multiline) – DEMO

    a.someclass {
        border: 1px #ACACAC solid;
        display: inline-block;
        text-align: center;
        height: 60px;
        line-height: 60px; /* the same as the height */
        width: 150px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a document class that contains a list of tags. Something like: class
I have several tags with the class i11 all with child tags of class
I have simple type Question : public class Question { public string[] Tags {
I have a UL with 9 anchor tags, each with the class 'highlight'. Here
I have a tags model that I'd like to be polymorphic, but I don't
I have strings that use simple_format so they always have p tags surrounding them.
I have a bunch of java custom tags that use spring managed beans.. since
I have a class that generates some html (form elements and table elements), but
I have a container and inside that I have several anchor tags. These anchor
I have the following partial methods in my partial class that is attached to

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.