The alignment of text in a table

I'd like to create a table.
Firstly, I tried to use html code from Betheme documentation: http://themes.muffingroup.com/betheme/documentation/
  1. <table>
    <thead>
    <tr>
    <th>Employee</th>
    <th>Salary</th>
    <th>Bonus</th>
    <th>Supervisor</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>Stephen C. Cox</td>
    <td>$300</td>
    <td>$50</td>
    <td>Bob</td>
    </tr>
    <tr>
    <td>Josephin Tan</td>
    <td>$150</td>
    <td>-</td>
    <td>Annie</td>
    </tr>
    <tr>
    <td>Joyce Ming</td>
    <td>$200</td>
    <td>$35</td>
    <td>Andy</td>
    </tr>
    <tr>
    <td>James A. Pentel</td>
    <td>$175</td>
    <td>$25</td>
    <td>Annie</td>
    </tr>
    </tbody>
    </table>
After using it I noticed that the text is centered.

I also tried using <table style="text-align: left; "> or <td style="text-align: left; "> but it doesn't work.

How to adjust the text to the left?

Comments

Sign In or Register to comment.