Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I Said Width 100px, and I (Beep)ing Mean It!!!

Status
Not open for further replies.

BoulderBum

Programmer
Jul 11, 2002
2,179
US
I'm having issues with a table I've created that is supposed to have columns of a fixed width. Unfortunately, the text on one line is not wrapping, so it throws the width off.

How do I work around this?
 
some code or a link to the page would be a good start ;-)
 
Some things to remember...

1st - make sure the sum of all column widths equals the specified width of your table.
2nd - don't use percentages for table/column widths if you need specific cell widths in pixels.
3rd - regardless of your specified column width, cell content can and will expand to match the content.
4th - if you don't want text to "wrap", use the nowrap attribute in the table cell
5th - every cell in at least one row must contain some kind of content - even if it's just a space (&nbsp).

There's always a better way. The fun is trying to find it!
 
a nice code to know:

style="width:100px;" style="height:100px;"


;)

__________________________________________________________
"The only difference between me and a mad man is that I'm not mad."
- Dali
 
Sometimes, you just have to look in the FAQ section...and you'll get the answer. ;-)
faq215-4499
 
Thanks guys!

I'll check these solutions out and get back to everyone soon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top