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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:13:40+00:00 2026-05-13T09:13:40+00:00

I have a matrix that I am showing in html table. I have my

  • 0

I have a matrix that I am showing in html table. I have my header row (th) but I am trying to see if there is such things as header column that I can style similar to header row. Right now I am using a class=odd and class=even on my TR in my Tbody so I am not sure if there is a way to have a column overwrite this row css logic.

  • 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-05-13T09:13:40+00:00Added an answer on May 13, 2026 at 9:13 am

    Given this markup:

    <table>
        <thead>
            <tr>
                <th>&nbsp;</th>
                <th>Field 1</th>
                <th>Field 2</th>
            </tr>
        </thead>
        <tbody>
            <tr class="even">
                <th>Row 1</th>
                <td>Cell 1,1</td>
                <td>Cell 2,1</td>
            </tr>
            <tr class="odd">
                <th>Row 2</th>
                <td>Cell 2,1</td>
                <td>Cell 2,2</td>
            </tr>
        </tbody>
    </table>
    

    You could use this CSS:

    thead th {
        background-color: red;
    }
    tr.even td {
        background-color: blue;
    }
    tr.odd td {
        background-color: yellow;
    }
    tbody tr.odd th, tbody tr.even th {
        background-color: green;
    }
    

    See this in action here.

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

Sidebar

Related Questions

I have a matrix class that takes the row and column reference type that
Suppose I have a matrix such that each row is a standard basis vector,
I have a confusion matrix such that: a b c d e f g
I have a huge matrix that I divided it into some sub matrices and
I have a 2D matrix that I need to add into a 3D matrix,
Have a matrix report now that has Position, Hours and Wages for a location
I have a sparsely populated matrix that's the result of a series of left
I have a matrix in R that I would like to take a single
I have this following numpy matrix that I want to sort in ascending order
I have a class to parse a matrix that keeps the result in an

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.