Solved

Preventing cells from widening

Posted on 2006-10-26
3
192 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dreamweaver CC:  ASP VBScript not displayed in "Page Type" 7 2,769
slider for the banner 2 316
Need icon art 9 118
CC Dreamweaver Regular Expression Problem 14 16
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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