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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:03:55+00:00 2026-05-27T14:03:55+00:00

I have a problem. I’m trying to get the text inside of an anchor

  • 0

I have a problem. I’m trying to get the text inside of an anchor tag to align at the bottom of the image inside of the anchor tag.

Here is how it shows now: https://i.stack.imgur.com/YKeey.jpg

Here is how it’s supposed to look: https://i.stack.imgur.com/EDq64.jpg

I’ve tried everything with the vertical-align property in CSS but it’s not working.

Any help?

Here is the request HTML and CSS code

#facebook { float: left; margin-top: 10px; margin-right: 10px; height: 22px; }

#facebook a { font-family: Gerogia; font-size: 18px; font-style: italic; color: #808080;      text-decoration: none; }

#facebook a img, #facebook a span {
vertical-align: text-bottom;
}

<div id="facebook"> <!-- Start facebook -->
<a href="#">
    <span>Like Us&nbsp;</span><img src="images/facebook.jpg" alt="Facebook" />
</a>
</div> <!-- End facebook --> 

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-27T14:03:56+00:00Added an answer on May 27, 2026 at 2:03 pm

    Set the line-height of the anchor tag equal to the font-size of the “span” text. Also, vertical-align: bottom.

    EDIT:

    Try using “vertical-align: bottom” instead of “vertical-align: text-bottom”. Check out these options from w3schools on the “vertical-align” spec. (not associated with the w3c)

    EDIT:

    Make the line-height of your “span” text equal to its font-size. I think the line-height is actually larger, and that’s why you’re seeing it not PERFECTLY aligned at the bottom…because the entire shape / cell of the text is the line-height and NOT the font-size. To normalize, make it equal like this (assuming you’ve kept a font-size of 18px):

    #facebook a span {
        line-height: 18px;
    }
    

    A page going into some detail explaining this is here.

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

Sidebar

Related Questions

I have problem with UIWebView delay when the load image from url. In my
I have problem with CSS <buttons> in Google Chrome, it shows space between <buttons>
I have problem in generating or getting decimal value in python. for now, I
I have problem in my PHP code. I'm trying to make internet shop and
I have problem with displaying bitmap image on imageview on high density screen (480x800).
I have problem with jCaret plugin in IE. jCaret downloads I want to get
i have problem passing data from one page to another using GET, for example
I have problem with List<Image> List<Image> _Images = new List<Image>(); int currIndex = 0;
Have problem with linq expressions. I want to get from db some data ordered
I have problem with dynamic generated ids in f:ajax tag in render parameter. I

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.