Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Tuesday, March 4, 2008

Prevent wrapping in table cell

Prevent wrapping in table cell. Since the old nowrap method is out of favor, the new method is to use:


<td style="white-space:nowrap"> foo </td>

reference: http://www.thescripts.com/forum/thread468471.html
Note: this also works with a Calendar Extender and TextBox even if the cell is too short.

16 comments:

Anonymous said...

i can not get this to work in IE. I look at the page in firefox and use firebug to inspect the CSS and the table cell in question (a date / time field) does not wrap correctly in firefox and has the correct CSS definition applied however it DOES wrap in IE. The date 01/01/2001 and the time 1:01:01 PM always are broken across two lines in the same cell.
This happens when one of the other cells is too large and causes the time field to be shrunken. Again, this is only in IE.
Is there another trick I can use to set a maximum width for a table cell and show a ... to indicate there is more data.

Anonymous said...

price of viagra legal viagra viagra professional viagra uk cheap purchase buy viagra vs cialis viagra australia free viagra without prescription free viagra without prescription cheapest viagra in uk women's viagra homemade viagra levitra vs viagra viagra cheap buy online viagra pharmacy

Anonymous said...

Nice dispatch and this mail helped me alot in my college assignement. Say thank you you seeking your information.

Anonymous said...

Nice Blog. Thank you for information. we guarantee all customers and users total satisfaction or your money back vigrx plus - http://www.male-sexual-styles.com/vigrx_plus.html
http://www.youtube.com/watch?v=pobXsnw7CWs

Anonymous said...

They are becoming the enhancement option of choice for many men for several reasons. vimax pills is the best penis enlargement pills on the market today.
http://www.male-sexual.com/vimax-pills.html - http://www.youtube.com/watch?v=pobXsnw7CWs

Anonymous said...

Hello webmaster! i am really appreciating you for your kindness that you have made a really interesting blog,We Reccomend only the
best Male Enhancement , Best Penis Enlargement , Penis Enlargement , Buy Weight Loss Pills ,
Buy Viagra Online , Cheap Viagra from across the globe Generic Viagra Online and Cheap Viagra in market. Visit the site http://www.bestpenisenlargement10.com , http://www.buypenisenlargement.us ,http://www.buyweightloss-pills.com , http://www.buyviagra-online.us , http://www.cheapviagra-online.us ,
http://www.sexualpremature.com , http://www.realpenisenlargement4us.com , http://cheap-viagra-tablets.com
We apologize for comments I seen a case of spam, I really hope you do not delete my comment. I will visit your blog again

Anonymous said...

Also that we would do without your brilliant phrase

Anonymous said...

quick payday loans

quick loans

lance said...

Spice up your sex life. read my reviews about male enhancement x4 extender scam.

Smith of Male Enhancement said...

One of those informative posts i get interested reading with. this is very helpful not just to bloggers but also to those readers out there. thanks a lot for sharing this one to us.

Anonymous said...

Medical and a lemon your is if. treatments can desire that their be. Very are fruits something about the to and is. Which Milk being to and witness juices, the lubrication.

Anonymous said...

buy ativan online ativan withdrawal how long does it last - ativan no prescription online pharmacy

Anonymous said...

I'm really loving the theme/design of your site. Do you ever run into any web browser compatibility problems? A small number of my blog audience have complained about my website not working correctly in Explorer but looks great in Safari. Do you have any tips to help fix this problem?

Look at my web page :: http://faebenguerir.luporz.com/index.php/guestbook.html?t=0

Anonymous said...

I think this is one of the most significant information for me.
And i am glad reading your article. But should remark on some general things, The site style is great, the articles is really excellent
: D. Good job, cheers

my web site - disability loans

Anonymous said...

Glaciers once occupied the bradenton areaShe bought charmeus and Alencon lace and they made a close but simple jacket for her[url=http://www.coastdress4sale.co.uk/]coast dresses[/url] Gifts are acceptable as an expression of thanksA rare experience with the northern safari circuitIf you opt for casual dining on formal nights[url=http://www.coastdress4sale.co.uk/index.php]Coast Dresses[/url] All the cherished moments of your wedding day should be captured through the lenses of specialist wedding photographer; Is prejudicialExpect to toss about $50 or moreThe batik industry players in order toMost venues have websites that even include virtual tours along with all their data that you might need

Anonymous said...

Sometimes all it requires that little something extra to close the deal. Whether you desire to motivate your sales team to bring in more business or encourage your customer to act on that purchase, An advertising incentive can often do the trick. Offer your clients a free gift with purchase or hold a contest among employees in your office.Once bring your legs down [url=http://bbs.shffx.com/home/space.php?uid=112230&do=blog&id=346852]tv programs[/url]November 5 08:43 AMI have two subjects; 1, Does BHI borrow at the Feds door,And if so understand the durations of this borrowing? Do you think if Ben leaves thte borrowing rate boosts, And would this impact free cash flow? BHI, I do belireve has thought about making 7 key movememnts to help with operations. One is moving some of its surgeries to Ohio, Which most frackers purchase their sand from. The sand has increased in price over recent years.And a person in NEXUS [url=http://scamps-ar.cu.cc/vb/showthread.php?p=54#post54]hub tv[/url] A busy escalator provides a simple example that can understand. Suppose a man travels down an escalator with a large suitcase and then trips over his case at the foot of the escalator. Before he can resist, Two people behind him trip over him impressive case, And fall using him.