File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Is HTML table cell width adjustable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Is HTML table cell width adjustable?" Watch "Is HTML table cell width adjustable?" New topic

Is HTML table cell width adjustable?

Jen Yang

Joined: Jul 07, 2003
Posts: 11
I used the following tag:
<td width=100>
No matter what value I give to the width attribute, the cell width always stays the same, that is as fit as possible to the string I have in that cell. Is there anyway I can adjust the width? Thanks.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

There are many dynamics which govern table layout which could cause the browser to override your width setting.
This is hardly a JSP question. I'd recommend you repost your question in the HTML/Javascript forum with more information about how the table as a whole is coded. (Please be sure to use the UBB code tags).

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Is HTML table cell width adjustable?
It's not a secret anymore!