Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to limit the width of a column and left align in HTML?

Avatar of Tolgar
Tolgar asked on
HTML
5 Comments1 Solution286 ViewsLast Modified:
I have the following table in HTML.

The width of each column changes with the content of the longest cell.

How can I make the column width fixed and left align each cell?

<html>
<table>
<p>
<table border="1">
<thead align="center" style="padding:8px" bgcolor="#FFEFD5">
<tr bgcolor="lightyellow">
<th>Column1</th>
<th>Column2</th>
<th>Column3</th>
</thead>
<tbody>
<th rowspan="2">a</th>
<td>b</td><td>d</td></tr>
<td>c</td><td>e</td></tr>
</tbody>
</table>
</html>