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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:38:25+00:00 2026-06-18T08:38:25+00:00

I have a layout using table cells. I know, using tables is quite out-dated,

  • 0

I have a layout using table cells. I know, using tables is quite out-dated, but I needed it for this one to make each row the same height without using absolute values for their height

See this fiddle or this draft.

I needed the .wrapper div, to display the .infobox correctly in firefox. Before that, I had the .infobox set as 100% height (with position absolute) which worked fine on chrome, since the parenting td-element had position:relative.

I want the hover-effect to be applied to the whole table cell but I’m desperate to figure out, how. I only want to use relative values (like em or %) for height and width, to make the layout sort of responsive/fluid.

Edit: Ok, using @OneTrickPony’s idea, I tried wrapping them around in another “table-row”-div. So how can I now make both “table-cell”-divs the same height, with kind of vertical-align: middlebut without specifying an absolute height for “table-row”-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-18T08:38:27+00:00Added an answer on June 18, 2026 at 8:38 am

    There is another option, but whether or not it is a good fit for your project depends on which browsers you want to support.

    http://caniuse.com/#search=flexbox

    I’ve simplified your markup a bit and completely removed the table.

    <div id="pictures">
        <article class="entry picture">
            <div class="entry picture">
                <img class="picture" src="./images/150x150.jpg" width="150" height="150"></img>
            </div>
            <div class="entry picture infobox">
                <a href="#" class="entry">
                    <h3 class="entry picture headline">contents_0 alpha headline</h3>
                    <div class="view picture">
                        <span class="comments_amount">5</span>
                        <span class="articlenk info">Bild zeigen</span>
                    </div>
                </a>
            </div>
        </article>
    
        <article class="entry picture"><div class="picture wrapper">
            <div class="entry picture">
                <img class="picture" src="./images/150x71.jpg" width="150" height="71"></img>
            </div>
            <div class="entry picture infobox">
                <a href="#" class="entry">
                    <h3 class="entry picture headline">contents_0 beta headline</h3>
                    <div class="view picture">
                        <span class="comments_amount">5</span>
                        <span class="pictures info">Bild zeigen</span>
                    </div>
                </a>
            </div></div>
        </article>
    </table>
    

    The CSS for this is very simple, but I’ve left off the prefixes:

    div#pictures {
        display: flex;
        flex-flow: row wrap;
    }
    
    article {
        flex: 1 1 50%;
        box-sizing: border-box; /* optional */
        position: relative;
    }
    
    div.infobox {
        position: absolute;
        bottom: 0;
    }
    

    http://jsfiddle.net/NDMTH/1/

    Figure/figcaption would probably be a more appropriate choice here than article.

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

Sidebar

Related Questions

I have a centered layout using margin:0 auto; , but one of my child
I have this big data-entry sort of page, a table kind of layout using
I have a 3 column layout using table-less design. <div id=main> <div id=left></div> <div
i am creating a new android application.i am using the table layout. I have
I have a doubt in layouts.I have designed one layout using group layout using
I have an item layout like this, and set the background by using item
I am using display: table and display: cell to have 3 column layout with
I am using a Miglayout to create a table-like layout for one of my
I have a table which has a long line in one of its cells.
I have a layout built using CSS display:table (inline, row, cell, etc). I'm doing

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.