I am trying to make same column size table...but if the content is more than column size automatically increase ...why is it like this ?
this is my html code :
<!DOCTYPE html>
<html>
<head>
<style>
table {
background-color: #eaeaea;
width : 80%;
border: 1px solid ;
}
td {
width : 20%;
border: 1px solid ;
}
</style>
</head>
<body>
<table>
<tr>
<td>Alfreds hrtfjfgjkfgAlfreds hrtfjfgjkfgAlfreds hrtfjfgjkfgAlfreds hrtfjfgjkfgAlfreds </td>
<td>Maria Anders</td>
<td>Germany</td>
<td>GermanyGermanyGermanyGermanyGermanyGermany</td>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
this is my o/p: