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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:06:52+00:00 2026-06-10T13:06:52+00:00

I have a complex table layout ( jsfiddle ). This is a long report

  • 0

I have a complex table layout (jsfiddle). This is a long report with many sections and each section has a table in it.

The first two columns of the tables should have a fixed width to make sure they align nicely.

The third column should grow to fit the text inside of it without wrapping (it’s always a single word).

The last column should always fill the remaining space.

When I just specify the widths of the first two columns and give the last column 100% width, then the last column fills the available space (good) but the widths of the first two columns are ignored.

When I give the table table-layout: fixed;, then the width of the first two columns works but the last two columns occupy the same screen space since I can’t give the third column a fixed width.

Is there a solution for this?

Note: The solution doesn’t need to work on IE! FF 12+ and Chome 21+ is enough.

  • 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-10T13:06:54+00:00Added an answer on June 10, 2026 at 1:06 pm

    Specify a general table with (e.g. ‘100%’). Then you only need to specify the widths of the first two columns. Therefore the two others behave like desired.

    Here is the fixed fiddle.

    In a nutshell:

    • Remove td.type { width: 100%; }​
    • Add width:0.1em; to td.name
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully this is less complex than I think. I have one table of companies,
I have two tables. Table A has a list of employee names. Table B
I have a complex table pulled from a multi-ActiveRecord object array. This listing is
I've got a complex table which actually produces a very simple layout. For many
Lets say I have two MySQL databases with some complex table structures. Neither database
I have a complex select query and a huge table. I'm running this select
I have to render a complex table with variable number of columns. In this
Quite a complex question: At the moment I have a table called timetable. This
I have a complex sorting problem with my SQL statement. I have a table
I have a complex html DOM tree of the following nature: <table> ... <tr>

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.