First of all, rowspan/colspan goes both in the <td> tag, not the <tr> tag
(maybe it works in IE but it's not standard)

What i thougt whas to adjust the width of the table. If you know how the
page will look like you can make the width like you mention (% dosnt work so
well, but giving it i pixels will). You can also draw a 1 px height line and
a [WIDTH] px wide line in each column (first row). This will force html to
stay in the size you told him. Otherwise the browser will look if some col
have space over and some are missing any and move some over.

e.g

---------------------------------------
| Col 1        | This col is to small |
|              | and does not fit in  |
|              | one row              |
---------------------------------------

As you can see the second col is "to small" and col1 is bigger than needed.
The browser may (depending on the browser) redesign the table (even if you
specified the width in the <td> tag)

---------------------------------------
| Col 1 | This col is to small and    |
|       | does not fit in one row     |
---------------------------------------

This is not what you usaly wants...


If your problem only was that you dont want any rowsplits you can do a
NOWRAP

<td NOWRAP>

[ref]
NOWRAP
Disables the default word-wrapping within a table cell, thus maximizing the
amount of the cell's horizontal space.
Standard: Deprecated in HTML 4 in favor of Style Sheets
Common: No
Sample:
<TD NOWRAP>The contents of
this cell will not wrap at all</TD>
[/ref]

There you go, hoped you got any hang of my bad language...

//Jan

-----Ursprungligt meddelande-----
Fran: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]For Peter Dolukhanov
Skickat: den 9 mars 2002 14:31
Till: [EMAIL PROTECTED]
Amne: Re: Table <td> problem


I think what you have to look into is the colspan and rowspan commands
which go into <tr> and <td> tags respectively..

Check out w3.org for a full HTML spec.

Pete

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Nova Bhojwani
Sent: 09 March 2002 05:24
To: [EMAIL PROTECTED]
Subject: Table <td> problem

Hi,
i am working in JSP...i have a table where the number
of columns change based on a status from a combo...due
to which the text wraps in the next line of the text
is more.....i tried using % width but did not help...

can anyone suggest some solution.....it is bit urgent please

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to