Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I need to manage some column widths, and I was doing that directly on TH

I change column width using <th width=10%>Name</th>

That works fine, the problem is, if the text does not fit in that 10% space, the column width is increased. How can I control that? What I really want is to set a max width value, and text split into two lines of the field if does not fit in that 10% space.
Posted
Updated 23-Jun-11 9:00am
v6

1 solution

Found it

table-layout:fixed

:)
 
Share this answer
 
Comments
thatraja 24-Jun-11 1:05am    
Glad, you have fixed yourself, Take a 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900