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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:23:56+00:00 2026-06-02T22:23:56+00:00

We would like to display order details as table in an email ​<table> <thead>

  • 0

We would like to display order details as table in an email

​<table>
    <thead>
        <tr>
            <th>Header 1</th>
            <th>Header 2</th>
            <th>Header 3</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>blah blah</td>
            <td>blah blah</td>
            <td>blah blah</td>
        </tr>
    </tbody>
</table>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

We would ideally want the header to have background-color as ‘#5D7B9D’ and text-color as ‘#fff’.
We are using bgcolor='#5D7B9D' for changing the background-color and are unable to find an alternative to do the same for changing the text-color.
As most of the email providers strip the CSS, we cannot use style attribute at all.

The questions are

  1. How to make the header text appear in white?
  2. Are there any alternate methods?
  • 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-02T22:23:58+00:00Added an answer on June 2, 2026 at 10:23 pm

    you can easily do like this:-

        <table>
        <thead>
            <tr>
              <th bgcolor="#5D7B9D"><font color="#fff">Header 1</font></th>
              <th bgcolor="#5D7B9D"><font color="#fff">Header 2</font></th>
               <th bgcolor="#5D7B9D"><font color="#fff">Header 3</font></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>blah blah</td>
                <td>blah blah</td>
                <td>blah blah</td>
            </tr>
        </tbody>
    </table>
    

    Demo:- http://jsfiddle.net/VWdxj/7/

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

Sidebar

Related Questions

I would like display different pictures in a JFrame (in a random order). I
i would like to display letters ether they are in ascending order or not
I would like to programmaticaly determine the DPI of a user's display in order
I have lots of facebook pages (we're a club) and would like to display
I would like to know how to display orders placed on a certain day.
i would like to display images on my website that are stored on a
I would like to display a svg file inside a eclipse view. a) It
I would like to display a list of records from my database, then for
I would like to display an exchange calendar on our intranet using SharePoint or
i would like to display a pdf on my winform and am thinking of

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.