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

  • Home
  • SEARCH
  • 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 8344245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:18:13+00:00 2026-06-09T06:18:13+00:00

I recently discovered the CSS code to have supported browsers print <thead> blocks at

  • 0

I recently discovered the CSS code to have supported browsers print <thead> blocks at the top of each page (using display: table-header-group; in @media print {}). This greatly simplifies the code in my application for printing tables.

However, my client is very picky about styles. It seems that the re-printed header groups lack some of the styles of the original headers, namely border-bottom-style and border-bottom-width to separate the headers from the table body. Since this seems to be a hard requirement, I would like a way to be able to include these styles with those header groups.

I’ve tried several different methods to try to force Firefox (our browser of choice) to print those styles to satisfy this condition, but none of these methods seem to produce the desired results. Some examples that I’ve tried:

@media print {
    thead {
        display: table-header-group;
        border-bottom-style: solid;
        border-bottom-width: 3px;
    }
}

and

<thead style="border-bottom-style: solid; border-bottom-width: 3px;"></thead>

and

table.class thead {
    border-bottom-style: solid;
    border-bottom-width: 3px;
}

and

table.class th {
    border-bottom-style: solid;
    border-bottom-width: 3px;
}

My question, then: is there a way to set styles on these reprinted header groups? Or does the browser just use the rather spartan default table header styles (bold-faced text)?

Please forgive me if this question has already been asked and answered. I searched around but could not find anything about this particular issue. There were many questions dealing with display: table-header-group; but none regarding styling those header groups.

  • 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-09T06:18:15+00:00Added an answer on June 9, 2026 at 6:18 am

    Setting the border on the cells of the header row seems to work ok on Firefox 14:

    @media print {
       thead { 
          display: table-header-group;
       }
       thead th {
          border-bottom-style: solid;
          border-bottom-width: 3px;
       }
    }
    

    Firefox doesn’t really need the display: table-header-group thing, but other browsers may need, see question CSS: Repeat table headers in print mode.

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

Sidebar

Related Questions

I recently discovered that when you have a page set to session readonly and
I recently discovered you can compile JScript into console apps using a built in
I recently discovered that all Windows 7 machines have an handwriting recognition API within
I recently discovered that different browsers handle the onclick event differently when the Control
I recently discovered this little scala example called Simple interpreter using monads : object
I recently discovered that you can set breakpoints in Xcode that will print to
I have recently discovered an annoying problem in some large program i am developing;
I updated some of my CSS styles to use normalize.css recently but discovered an
I recently discovered the Emacs code browsing package (ECB) and it seems to be
I have recently discovered OData & the new WCF Web APi library on codeplex.

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.