Jump to content

SportsEngine Staffer

Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Posts posted by SportsEngine Staffer

  1. You can center that first column by dropping this code on the page, either by placing it in the head code (single page or cascading throughout that section of the site) or by using the Code page element.

     

    <style>.dataTable td:first-child {

    text-align: center;

    }</style>

     

     

     

    If you want everything to be aligned left, drop in this code:

     

     

    <style>.dataTable td {text-align: left;}

    .dataTable thead {

    text-align: left;

    }

    </style>

     

     

     

     

    If you want that left alignment to apply only to specific tables, you can make that code a specific CSS class by typing in .tableLeft (as an example) and then adding this code to the cascading head code on all sections on your site. Now, when you create a table, you can add tableLeft in the Custom CSS Class field when building the table.

     

    Here's the code for that scenario:

     

     

    <style>.tableLeft .dataTable td {text-align: left;}

    .dataTable thead {

    text-align: left;

    }

    </style>

×
×
  • Create New...