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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:42:54+00:00 2026-05-18T01:42:54+00:00

I have a <table> with <thead> and <th> tags. Both <thead> and <th> tags

  • 0

I have a <table> with <thead> and <th> tags.

Both <thead> and <th> tags have background images. background image of <thead> is repeated and background image of <th> is positioned on the left side of the cell.

In Firefox it works fine but in IE (my IE is version 7) the background image of <thead> is not displayed. If I remove the background image of <th> then the background image of <thead> appears.

Any suggestion?

EDIT:
Here is my simplified code:

<table>
   <thead>
     <tr>
       <th>AAAA</th>
       <th>BBBB</th>
       <th>CCCC</th>
     </tr>
   </thead>
   <tbody>
     <tr>
       <td>1111</td>
       <td>1111</td>
       <td>1111</td>
    </tr>
   </tbody>
</table>

<style>
    thead {
      background: url(PATH TO MY IMAGE) repeat-x center /*this image is not displayed in IE*/
    }
    th {
      background: url(PATH TO MY IMAGE) no-repeat left center
    }
</style>
  • 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-18T01:42:54+00:00Added an answer on May 18, 2026 at 1:42 am

    Starting from this question and modifying the answer:

    <style>
      table {
        border-collapse: collapse;
        background: url(PATH_TO_THEAD_IMAGE) repeat-x center;
      }
      tbody {
        background: #fff; /* This covers up most of the <table> background */
      }
      th {
        background: url(PATH_TO_TH_IMAGE) no-repeat left center;
      }
    </style>
    

    Gives a reasonable approximation of what you’re probably trying to achieve. This seems to work pretty much the same in Firefox and IE7, I didn’t check Opera/Chrome/Safari/IE8 though.

    You should put this sort of dirty kludge into an IE7-specific stylesheet and load it with an IE7-specific conditional comment so that you don’t litter your CSS with IE7 kludges.

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

Sidebar

Related Questions

I have a table that looks like this: <table> <thead> <!-- random table headings
I have a table which looks like this: <table id='t'> <thead> .... </thead> <tbody
I have a table: <table> <thead> <tr> <td>some1</td> ...... <td>some2</td> <th>count</th> <th>EditCount</th> </tr> </thead>
I have the following table <thead> <tr> <th>Account ID</th> <th>Code</th> <th>Date Created</th> <th>Date Expires</th>
I have a simple table that has this structure: <table> <thead> <tr> <td>Some info</td>
I have an HTML table like: <div> <table border=1> <thead> <tr class=example> <th> <span
I have a table data like this: <table class=tablesorter id=dea> <thead> <tr> <th class=header
I have a Sqlite notes database with a Toxi schema (Notes table, Tags table,
I have a javascript function which get datagrid's header into THEAD tags. This code
I have two tables linked together through the 3rd table threads: id, name tags:

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.