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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:58:04+00:00 2026-05-22T00:58:04+00:00

How how to make <a> text align bottom? I have added height = line-height

  • 0

How how to make <a> text align bottom? I have added height = line-height, and vertical-align:bottom; but the text still in the middle of the div. How to do? Thanks

Test in http://jsfiddle.net/BanAz/

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
#layer{width:198px;height:48px;line-height:48px;border:1px #000 solid;vertical-align:bottom;}
#layer a{text-decoration:none;}
</style>
</head>
<body>
<div id="layer">
<a href="#">menu</a>
</div>
</body>
</html>
  • 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-22T00:58:05+00:00Added an answer on May 22, 2026 at 12:58 am

    Options include:

    • Remove line-height: 48px and add display: table-cell to #layer:
      http://jsfiddle.net/jgQ9k/1/
      Note that this won’t work for IE7, because display: table-cell isn’t supported.
    • Use a large line-height: http://jsfiddle.net/jgQ9k/2/

    And the method I would actually use:

    • Add position: relative to #layer, and position:absolute; bottom:0 to #layer a:
      http://jsfiddle.net/jgQ9k/3/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this: //th[@style='border-bottom-color: #ce9c00; text-align: left; line-height: 25px; I want to make it
I have this menu: #navbar { text-align: center; margin: auto; padding: 0; height: 1em;
How can I make my text wrap automatically to the next line when I
I can't make td Date to have fixed height. If there is less in
.classname { background-image:url(../../images/classname.png); background-color:transparent; background-repeat:no-repeat; text-align:center; border:none; height:50px; width:160px; font-size:12px; font-family:Tahoma, Geneva, sans-serif; color:#CCC;
<head> <style type = text/css> body{ text-align:center; } #container{ position:relative; width:600px; height:auto; border:1px solid
Right now, I have CSS like this: #lightbox2wrapper .panel-col-first .pane-node-title { text-align:center; color:#8A3B3B; font-weight:bold;
I have a image that I want to display a DIV on the bottom
I have a HTML table & I am trying to make its height equal
Is it possible to make the text in a TextBox unselectable without disabling the

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.