Solved

Preventing cells from widening

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now