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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:22:25+00:00 2026-05-24T01:22:25+00:00

Example The yellow represents the link/clickable area. CSS #shipment-list a { display: block; width:

  • 0

Example

The yellow represents the link/clickable area.

CSS

#shipment-list a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: inherit;
    background-color: yellow;
    margin: 0;
    padding: 0;
}

HTML

        <td>
            <a href="#">
                Jul 24, 2011 @ 1:05p.m.<br>
                (4 hours, 19 minutes ago)
            </a>
        </td>

I can’t seem to reproduce it in a jsFiddle however, and I can’t link you to the live page because it’s running off localhost and contains some confidential information.

Any idea what might be causing this?

I get the same result in FF4 and IE9.

Edit: Figured out what was causing the problem. Still don’t know how to fix it. The td basically shrinks to its contents, even though it doesn’t appear that way. I don’t want to explicitly define the height of my td though, so how do I get around this?

  • 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-24T01:22:26+00:00Added an answer on May 24, 2026 at 1:22 am

    The answer has been posted a couple of times under different names.

    How can I get a div to fill a table cell vertically?

    Make a DIV fill an entire table cell

    NOTE: These solutions assume the table has an explicit height.

    In Chrome, position: relative is your friend. It’ll force the <a> to take up the entire table cell’s height and width. Sadly this isn’t enough to make it work in FF and IE. Check the demo.

    To make it work in Chrome + FF, you can use display: table instead of display: block. Check it out.

    While IE8 and IE9 both support display: table, they don’t like its usage in this solution unless you give <td> a height of 100%, as seen in this third demo. If you resize your browser window or the width of the table, you’ll notice that the link doesn’t reach the full height of the cell. That’s because the link is going off 100% (<a>) of 100% (<td>) of 300px (<table>), so the link will be at most 300px tall. It’s a compromise, and one I’m not sure you’ll be able to work around.

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

Sidebar

Related Questions

A more convoluted example of this question is here: child div height of 100%
In the following example, the outer yellow box is 240px wide (width of 200
For example: var Cars = { 1: { Make: Honda, Model: Accord, Color: Red
It is easy to arrange DIVs horizontally with float. For example: <div style="width: 500px;">
I'm following an example in this link and created a class as below public
I want After click on the radio, Radio-selected that background color is yellow putting
Is there a "nice" way to eliminate consecutive duplicates of list elements? Example: ["red";
For example, if a user can submit red, yellow, or green on a form
Example: You have a shortcut s to SomeProgram in the current directory. In cmd.exe
Example I have Person , SpecialPerson , and User . Person and SpecialPerson are

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.