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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:10:37+00:00 2026-06-10T23:10:37+00:00

I’m trying to use the css3 flexbox module in order to have table columns

  • 0

I’m trying to use the css3 flexbox module in order to have table columns that can stretch, but still have a default width, as well as having a min-width and max-width.

This works well when the viewport is wide enough to hold the minimum widths for each column, but when the viewport shrinks, all the columns collapses. Is there any good way to make sure that the min-width/width is always maintained for flexboxes, or is there any other way to have table columns that can “flex”. I’ve only tested this with Chrome 21 so far.

CSS:

#test, #test > thead, #test > tbody {
    display: block;
    width: 100%;
}

#test tr {
    display : -webkit-flex;
}

#test tr > td, #test tr > th {
    -webkit-flex-direction: row;
}

.col1 {
    width: 35px;
}

.col2 {
    -webkit-flex: 1 200px;
    width: 120px;
    max-width: 2000px;
}

.col3 {
    -webkit-flex: 1 150px;
    width: 80px;
    max-width: 2000px;
}

.col4, .col5 {
    width: 70px;
}

.col6 {
    width: 75px;
}

.col7 {
    -webkit-flex: 1 100px;
    width: 100px;
    max-width: 2000px;
}

.col8 {
    width: 55px;
}

.col9 {
    -webkit-flex: 1 100px;
    width: 60px;
    max-width: 100px;
}

.col10 {
    width: 80px;
}

HTML:

<table id="test">
    <thead>
        <tr>
            <th class="col1">col1</th>
            <th class="col2">col2</th>
            <th class="col3">col3</th>
            <th class="col4">col4</th>
            <th class="col5">col5</th>
            <th class="col6">col6</th>
            <th class="col7">col7</th>
            <th class="col8">col8</th>
            <th class="col9">col9</th>
            <th class="col10">col10</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="col1">col1</td>
            <td class="col2">col2</td>
            <td class="col3">col3</td>
            <td class="col4">col4</td>
            <td class="col5">col5</td>
            <td class="col6">col6</td>
            <td class="col7">col7</td>
            <td class="col8">col8</td>
            <td class="col9">col9</td>
            <td class="col10">col10</td>
        </tr>
    </tbody>
</table>
  • 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-10T23:10:39+00:00Added an answer on June 10, 2026 at 11:10 pm

    Ok, this seems to be a Chrome bug. I tried this out with Chrome Canary and the css seems to be working there.

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

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

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.