• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

table Size

Question

madfire    0

i want to write text in a table, but instead of writing <br> each time at about the end of the table (to avoid the rezising of the table), writing my whole text on a line... and automaticly change line when the border is reached.. i think i can do it with css but i cant find how..

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Ph8l    0

<td width="150">TEXT</td>

Is that what you mean?

It should just wrap automatically once a width is declared.

Share this post


Link to post
Share on other sites
  • 0
madfire    0

its not working..

Share this post


Link to post
Share on other sites
  • 0
Nag    0

TABLE  { table-layout : auto/fixed}

auto: Default. Column width is set by the widest unbreakable content in the column cells.

fixed: Table and column widths are set either by the sum of the widths on the col objects or, if these are not specified, by the width of the first row of cells. If no width is specified for the table, it renders by default with width=100%.

http://msdn.microsoft.com/workshop/author/...tablelayout.asp

Seems that it only works on IE though?

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.