html - max width of a column

Posted on 2003-03-11
Medium Priority
Last Modified: 2010-04-25
i have a number of columns on the page, into which information will be placed from a database. the problem is that i want the columns to say the same width (i.e. the text must wrap around when it comes to the end of the column not just extend the width of the column). any suggestions besides using text areas?
Question by:PhilipHogan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 19

Expert Comment

ID: 8111349
The text will force the cell to the width of the widest word. There is nothing you can do about that.

You can set the width of the cells (either px or %), however, the totals of a row must add up to the px width of the table or 100% (depending on what you used, don't mix them in the same table). BUT -- if there is a long word in the content, or an image that's wider than you specified, THE CELL WILL EXPAND.

Again, there is NOTHING you can do to stop this. It's how tables work.

Accepted Solution

WebDevAng earned 200 total points
ID: 8131510
Have you tried adding the word wrap in your <td>?
<td width="100" wrap>

Remember that if you have any empty cells but still want to enforce the width to put a &nbsp; in the cell.


Expert Comment

ID: 9163999
is this happening when the page is live? or when you are building it in dreamweaver?  Sometimes when you are building the page it appears to expand, but when you check it out live it is fine...

Expert Comment

ID: 9907847
This question has been classified as abandoned.  I will make a recommendation to the moderators on its resolution in approximately one week.  I would appreciate any comments by the experts that would help me in making a recommendation.

It is assumed that any participant not responding to this request is no longer interested in its final deposition.

If the asker does not know how to close the question, the options are here:

EE Page Editor

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question