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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:18:46+00:00 2026-05-23T12:18:46+00:00

CSS: table.t_group tbody th { text-align: left; } table.t_group_matches tbody th { text-align: center;

  • 0

CSS:

table.t_group  tbody th
{
    text-align: left;
}

table.t_group_matches tbody th
{
text-align: center;
}

HTML:

<table class="t_group">
    <tbody>
        <tr>
            <td style="width:200px">123</td>
            <td style="width:200px">456</td>
        </tr>
    </tbody>
    <tfoot><tr><td colspan="2">
        <table class="t_group_matches">
            <tbody><tr>
                <th>Some text to be centered</th>
            </tr></tbody>
        </table>
    </td></tr></tfoot>
</table>

The pointed text is not centered…

Please advise, how to make it centered?

P.S. I could add style specification into tag itself (that works), but I don’t like to move that ‘stuff’ out from css file.

P.P.S.

If that is essential, my ‘doctype’:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

P.P.P.S.

If you know any new features (html5, css3) that could work please also advise.

  • 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-23T12:18:46+00:00Added an answer on May 23, 2026 at 12:18 pm

    The text is centered, just the table doesn’t fill the width of its enclosing area:

    table.t_group_matches {width:100%}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/fQv97/ HTML <div class=table-cell> My text, should be align middle </div> CSS .table-cell {
CSS table tr {border-bottom:1px solid #008999} HTML <table width=100% cellspacing=0 cellpadding=0> <thead> <tr> <th
I'm trying to generate a dynamic table using CSS: <html> <head> <style> div.el1, div.el2
Consider the task of replacing this table with CSS stylings: <table border=1> <tr><td align=center>
I made a site with simple instructions let's say: <html> <head> <style type=text/css> .a120
I have the following style in an external CSS file called first.css table {
Is there any way to theme an HTML table (CSS) with using the jQuery
I have a homepage.html and it refers to styles.css(makes a table). But I also
I have an image over a table that has been style with CSS. When
I am wondering about the following code: <html> <head> <title>Test HTML</title> <link rel=stylesheet type=text/css

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.