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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:13:50+00:00 2026-06-13T03:13:50+00:00

I have div tags in below format: <div>first</div> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div>

  • 0

I have div tags in below format:

<div>first</div>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>last</div>

I want it in 2X3(col X row) table. Is it possible? Only using CSS without adding any other HTML tag.
If Yes, then what would be the CSS for that?

Output format:
first
1 4
2 5
3 6
Last

I want data in above format.
Sorry I did not mention the format in above question.

  • 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-13T03:13:51+00:00Added an answer on June 13, 2026 at 3:13 am

    You can use this css:

    .div-table{
      display:table;         
      width:auto;         
      background-color:#eee;         
      border:1px solid  #666666;         
      border-spacing:5px;/*cellspacing:poor IE support for  this*/
    }
    .div-table-row{
      display:table-row;
      width:auto;
      clear:both;
    }
    .div-table-col{
      float:left;/*fix for  buggy browsers*/
      display:table-column;         
      width:200px;         
      background-color:#ccc;  
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a flowplayer that I am using with a few div tags below
I have a main Div tag with multiple div tags as below. The child
I have a parents div pag and a multiple child Div tags. I want
I have created a popup using jQuery.. I have 4 div tags in my
I have two div elements as below: <div class=sc-info tags=abc mno> .... </div> <div
I have the code that's below. Each of the div tags is set by
I have to display below snippet according to data available in DB <div id=testimonial-row>
I have 3 div tags. Each having no. of textboxes and button. Each textbox
If I have 2 div tags: <div id=parentDiv> <div id=childDiv><!-- other html --></div> <!--
I have a site that has 2 DIV tags, one floats left the other

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.