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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:33:25+00:00 2026-06-15T19:33:25+00:00

the table header I want: <table class=tabel_op_panou style=margin: 0px 2px 0px 2px; width: 99%;

  • 0

the table header I want:

<table class="tabel_op_panou" style="margin: 0px 2px 0px 2px; width: 99%; table-layout:fixed;">
<tr>
    <th rowspan="2" style="width: 35%;">A</th>
    <th colspan="2" style="width: 25%;">B</th>
    <th colspan="3" style="width: 40%;">C</th>
</tr>
<tr>
    <th style="width: 8%;">B1</th>
    <th style="width: 17%;">B2</th>
    <th style="width: 8%;">C1</th>
    <th style="width: 17%;">C2</th>
    <th style="width: 15%;">C3</th>
</tr>

The problem is no matter how I set the widths, the 2nd row stays the same. I tried percentages and fixed pixel widths.

Removing table-layout from the style seems to work but I need the fixed layout. Is there any way to do it while keeping “table-layout: fixed”?

I want the layout in the end to look something like this but with table-layout: fixed/

  • 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-15T19:33:26+00:00Added an answer on June 15, 2026 at 7:33 pm

    table-layout:fixed:

    Table and column widths are set by the widths of table and col
    elements or by the width of the first row of cells. Cells in
    subsequent rows do not affect column widths.

    So, you can modify your code like this:

    <table class="tabel_op_panou" style="margin: 0px 2px 0px 2px; width: 99%;border:1px solid grey;table-layout:fixed;">
        <col style="width: 35%;"/>
        <col style="width: 8%;"/>
        <col style="width: 17%;"/>
        <col style="width: 8%; "/>
        <col style="width: 17%;"/>
        <col style="width: 15%;"/>
    <tr>
        <th rowspan="2" style="width: 35%; border:1px solid grey;">A</th>
        <th colspan="2" style="width: 25%; border:1px solid grey;">B</th>
        <th colspan="3" style="width: 40%; border:1px solid grey;">C</th>
    </tr>
    <tr>
        <th style="width: 8%; border:1px solid grey;">B1</th>
        <th style="width: 17%; border:1px solid grey;">B2</th>
        <th style="width: 8%; border:1px solid grey;">C1</th>
        <th style="width: 17%; border:1px solid grey;">C3</th>
        <th style="width: 15%; border:1px solid grey;">C4</th>
        </tr>
    </table>
    

    See demo: http://jsfiddle.net/rRJU7/2/

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

Sidebar

Related Questions

I have a table with a header and an empty body: <table style=width:50%; class=adminlist>
Hello everybody I am drawing dynamic table and I want to add header for
I try to make a table header fixed when scoll down on pages. The
I have the following HTML table and want to replace the subtable class =
I want to reuse the same UIView object as a table header in different
I have a problem with jquery and a dynamic table. I want a click
I want to display a table with custom header titles. The table view is
I have a problem with AppendFormat method of StringBuilder class. I am creating table
I load 2 tables (header and data) dynamically into a div. I want the
I used the Vertical Table Header Cell Renderer that is available in this site

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.