Solved

Preventing cells from widening

Posted on 2006-10-26
3
197 Views
Last Modified: 2010-04-25
Hi

I have an html page with a table and a number of cells.  The main content table is fixed with at 450 px.  Everything is fine with the layout until I enter text with more than 1 line into this cell - the cell width expands by 50px and also drags the cell above it to the same width.  The same happens however I enter the text - either typing or importing.

The above only happens, however, in Explorer - in Firefox the cells don't expand.

What is happening here... and how can I solve it??

I am using Dreamweaver MX 2004

Many thanks

Ken
0
Comment
Question by:kenabbott
[X]
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
3 Comments
 
LVL 25

Accepted Solution

by:
Rouchie earned 500 total points
ID: 17812644
By default, tables act like a grid in HTML, meaning that if one cell expands - all the rest will expand too.  Cells will generally only expand if the content is wider than the cell width itself, usually caused by an image (which of course can't wrap).  There are lots of CSS rules that affect wrapping, and without a code sample its difficult to identify the problem.
However, here is a trick you can use to force any content that is too wide to simply scroll inside the cell.  Add this css to your table cell:

  <td style="width:450px; overflow:scroll;">Normal cell content goes here</td>
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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