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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:20:27+00:00 2026-06-09T12:20:27+00:00

Guys I am a programmer and when I need to add something that looks

  • 0

Guys I am a programmer and when I need to add something that looks like a table in the eye and use html tables, I always get smacked by my fellow web designers. How can I construct a common html div structure for divs so I can just have it and always copy paste the html when ever I need something that looks like a table?

So in the case of this table html structure

<table>
 <tr><td></td><td></td></tr>
 <tr><td></td><td></td></tr>
 <tr><td></td><td></td></tr>
</table>

what is the similar div structure?

  • 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-09T12:20:28+00:00Added an answer on June 9, 2026 at 12:20 pm

    You’ll want to use the display table, table-row, and table-cell:

    CSS:

    .table
    {
       display:table;
    }
    
    .table-row
    {
       display:table-row;
    }
    
    .table-cell
    {
       display:table-cell;
    }
    

    HTML:

    <div class="table">
       <div class="table-row">
          <div class="table-cell">1</div>
          <div class="table-cell">2</div>
       </div>
       <div class="table-row">
          <div class="table-cell">3</div>
          <div class="table-cell">4</div>
       </div>
    </div>
    

    Demo

    Note that the table, table-row, and table-cell display values aren’t supported in IE7 or below and IE8 needs a !DOCTYPE.

    Also, tables should be used for representing tabular data since it gives the markup more semantic meaning over a bunch of div’s with classes. You just shouldn’t use tables for layout purposes.

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

Sidebar

Related Questions

Hey guys. I'm not much of a programmer, but still need to do some
I am a systems programmer, so i just know some basic css/html. I like
Hey guys I have an older site that is coded in AS2(I can't get
Guys I am a starting programmer and need help. I am working on PART
N00b programmer here... Trying to store something into a string to use it in
guys, I would like to you evaluate next code below. As you see, I
Guys I've 3 tables as follows: Project {id, name, owner, ....} ProjectMilestones {id, project_id,
Beginner programmer here....hope it makes sense :) I have created a console app that
All the guys probably will recommend that I read the follow previously question in
Possible Duplicates: Things in .NET Framework 4 that every programmer should know Basic difference

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.