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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:26:12+00:00 2026-06-08T00:26:12+00:00

I have some CSS theming which I would like to do to the head

  • 0

I have some CSS theming which I would like to do to the head of a table which the head of the table does not actually support. (great, right?!)

So my idea was to add an element BEHIND the table head and apply the theming to that!

However my attempts to add tables, tbodies, theads, th’s, or td’s with negative z-indexes have all failed miserably.

On the flip side, I could put my table header in its own table and then encapsulate the table and do the theming on THAT… But then the th’s in my header would not be aligned to the td’s in my tbody! I can’t encapsulate the tbody or td’s/tr because divs are not allowed inside tables when not encapsulated by td or tr…

The effects I want to do are:
Set border width and color
Set border radius
Set background-image and color

The border radius is what will not work

Any ideas?

  • 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-08T00:26:14+00:00Added an answer on June 8, 2026 at 12:26 am

    I am not sure this is what you are looking for but you can set CSS for table header using ‘th’ element.
    For eg. try the following implementation,

    <!DOCTYPE html>
    <html>
    <head>
    <style type="text/css">
    
    td
    {
    border:1px solid black;
    }
    thead th
    {
    border:1px solid green;
    }
    thead th:first-child
    {
    border-radius:12px 0px 0px 12px;
    }
    thead th:last-child
    {
    border-radius:0px 12px 12px 0px;
    }
    </style>
    </head>
    
    <body>
    <table cellpadding="0" cellspacing="0">
    <thead>
    <tr>
    <th>Firstname</th>
    <th>Lastname</th>
    <th>Middlename</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>Peter</td>
    <td>Griffin</td>
    <td>Griffin</td>
    </tr>
    <tr>
    <td>Lois</td>
    <td>Griffin</td>
    <td>Griffin</td>
    </tr>
    </tbody>
    </table>
    </body>
    </html>
    

    Please check the link.

    You can also set border radius using CSS3.

    border-radius:10px 0 0 10px;
    

    If cross-browser compatibility is a problem you can use rounded images as background.

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

Sidebar

Related Questions

I have some CSS style that does not work in IE and that works
I have some generated CSS and would like to use some css that could
I have some CSS like so: table.varTabs th { border-collapse: collapse; border-bottom: #637356 2px
I have some basic CSS on a table and I cannot get a border
I have some css issue which I don't understand. I have created default mvc
I have some css like so #menu li { color:#336633; } .hover { color:#ffffff;
I have some css like this: cursor: url(x.gif), move; but the problem is that
I have some HTML/CSS which is working perfectly in Firefox; however, in Chrome, the
I have some css for adjusting things in my table. Here it is: .editor
I have written some CSS which targets elements using the parent > child selector.

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.