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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:13:36+00:00 2026-05-24T21:13:36+00:00

I have a table coded in HTML as follows; <table border=1 class=tableBasic> <thead> <tr>

  • 0

I have a table coded in HTML as follows;

<table border="1" class="tableBasic">
<thead>
    <tr>
        <th rowspan="2">Head Row 1</th>
        <th rowspan="2">Head Row 1</th>
        <th rowspan="2">Head Row 1</th>
        <th colspan="4">Head Row 1</th>
    </tr>
    <tr>
        <th>Head Row 2</th>
        <th>Head Row 2</th>
        <th>Head Row 2</th>
        <th>Head Row 2</th>
    </tr>

</thead>
</table>

So this is a table header spanning 2 rows.

.tableBasic thead{
    background: url("/images/tbl_header.png") repeat-x scroll 0 0 transparent;
}

Is there a rendering difference for the background image between IE and Firefox?

While IE shows the background image as spanning 2 rows (i.e. equals 2 row height), Firefox just shows it for the first row (and does not show any background for the 2nd row)

The background image is tall enough to span 2 rows height.
Unfortunately I won’t be able to modify the HTML code and only can control this from the CSS.

How do I fix this issue in CSS?

IE
enter image description here

Firefox
enter image description here

  • 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-24T21:13:37+00:00Added an answer on May 24, 2026 at 9:13 pm

    I think Firefox is doing what you said, you declared the background on thead and repeat only X, so that’s what Firefox is doing. IE is cheating a little which makes it look better, but it’s not following your css declaration. Since you have another little issue to solve, namely the fact that some cells are taller than others and one image won’t do it, I think you should consider aiming your css at the th elements instead.

    Perhaps something like this: http://jsfiddle.net/JQK2A/1/

    You can define the appropriate background image according to the colspan or rowspan attribute.

    CSS

    .tableBasic thead th {
        background: green url(background.jpg);
    }
    
    .tableBasic thead th[rowspan] {
        background: red url(background2.jpg); 
    }
    
    .tableBasic thead th[colspan] {
        background: blue url(background3.jpg); 
    }
    

    UPDATE after comment:

    If you are OK with using CSS 3, you could try this (using just 1 background image):

    .tableBasic thead th {
        background: url(background.jpg);
        background-size: 100% 100%; /* CSS 3 */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have html as follows: html = '<html><table>this is a table<p>some text</p></table><p>text outside of
I have a previous html code. <table width=600px cellspacing=0 border=1 id=mainTable> <tr> <th> Name
i have a table with code like this: <tr> <th scope=row>5-17</th> <td>23.6 (22.0-24.0)</td> <td>18.0
I have a table with a code like this: <table cellpadding=6 rules=groups frame=no> <thead>
I have a HTML code as follows; <div>Content table with varying height</div> <div id=buttons>
i have following HTML code:- <table class=results> <tr> <td> <a href=..>link</a><span>2nd Mar 2011</span><br>XYZ Consultancy
I have a link as follows. @Html.ActionLink(Create Report, Screenreport, Reports, null, new { @class
I have the following html code: <table> <tr> <td> <div id=fixmywidth style=position:relative; height:30px;> <div
I have the following html code. <html> <body> <div style=max-width:1600px; min-width:900px; > <table> </table>
I have a HTML file that has code similar to the following. <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.