Fix the width of table

F

Fred

Is there a way to fix the maximum widtth of a table. I set the width at 500
pixels but when I cut and paste text into the table it spreads out and forces
the table to go wider than required?
 
R

Ronx

Table and cell width is always a minimum value.
The browser will do it's best to keep to the specified width, but any
content in a table cell that requires a greater width will stretch the
cell. The table row (hence the table) is as wide as the total width of
the cells in the row. This content may be images and/or long length of
text with no white-space (text will wrap on white-space unless no-wrap
is specified).
 
M

Murray

Modern browsers will follow a max-width CSS style. IE6 (and previous) will
not, unfortunately. However, as Ronx says, if you put 5 pounds of content
into a 3 pound container, something will break. By this, I mean that you
are trying to fix a fundamental process problem by nailing things down, and
that's not a good approach. It's much better to not put more into the table
than the table can contain.

Perhaps a look at your code could tell us what it is that is forcing your
table to go wide?
 
P

Paul C

Hi
Did you copy the text into word pad first then copy and paste this into
frontpage to remove formating
Paul M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top