I have a text in a table that I want to set the exact width, however, the when I try to set the width is just randomly set a width. The text "In American football..." width is 590px, and when I try to set its width to 300px (like current configuration), its width is 510px (and this stay the same no matter what width I set).
How can I set this to 300px as what I intend?
My code:
div.page {
background: #white;
position: relative;
width: 1024px;
height: 768px;
margin: auto auto;
}
.contact_table {
background-color: #008486;
width: 1024px;
}
.contact_text {
position: relative;
text-align: left;
left: 100px;
max-width: 300px;
width: 300px;
font-family: "Helvetica";
}
<!DOCTYPE html>
<div>
<table class="contact_table">
<tr>
<td class="contact_text">In American football, the Tampa Bay Buccaneers defeat the Kansas City Chiefs in the Super Bowl </td>
<td class="contact_text"> Tom </td>
</tr>
</table>
</div>
</div>