Jump to content

How do I set columns width in table in strict html?


nadavvin

Recommended Posts

You could use CSS:

<head><style type="text/css">td.wide { width: 75%; }td.narrow { width: 25%; }</style></head><body><table>  <tr>	 <td class="wide"> </td>	 <td class="narrow"> </td>  </tr></table></body>

Or, you could look into using the colgroup and col tags. http://www.w3schools.com/tags/tag_colgroup.asp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...