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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:19:00+00:00 2026-06-18T10:19:00+00:00

Is it okay to have display: table; on the container element, and display: table-cell;

  • 0

Is it okay to have display: table; on the container element, and display: table-cell; on its children, or should there be a wrapper with display: table-row; in-between?

I mean…

<div style="display: table;">
   <div style="display: table-cell;"></div>
   <div style="display: table-cell;"></div>
</div>

or

<div style="display: table;">
   <div style="display: table-row;">
      <div style="display: table-cell;"></div>
      <div style="display: table-cell;"></div>
   </div>
</div>

display: table-row; makes sense when you have multiple rows. But in my case, I am only using it for a multi-column responsive layout (which implies single row, obviously) as it’s less complex than using float or something else.

So, the question is, for a single-row multi-column layout, is it okay to have display: table; on the container element, and display: table-cell; on its children, without a display: table-row; wrapper in between?

I’ve seen some sites do this (i.e. they don’t use display: table-row;). Here’s an example.

  • 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-18T10:19:01+00:00Added an answer on June 18, 2026 at 10:19 am

    A single anonymous table row box will be generated within your outer div (the table) to contain all the inner divs (the table cells), so it’s perfectly acceptable if you know you want all the table cells to belong in the same row.

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

Sidebar

Related Questions

I'm noticing that display:table on a div will cause its width calculation to have
I am wondering if it is okay to have master and detail table for
Okay, so, I have a list table with 2 columns: codes and dates. I
Okay, so I have a table, with 20 fields named q1, q2, q3 all
Okay so I have a Courses, students, and registrations table. I allow the student
Okay, I have a single table like this: id query results ip --------------------------------- 1
Okay, so I have a table with individual rows or parent rows with a
Okay, on one of my sites I have a news sidebar that displays events
Okay - I have a dilemma. So far my script converts page titles into
okay i have been trying to understand this for hours i am learning VB

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.