Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / June 2007



Tip: Looking for answers? Try searching our database.

Clipping table cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RobG - 26 Jun 2007 05:50 GMT
I'm trying  to get table cells to clip content rather than wrapping.
It has been suggested to use:

 td.clipped {
   width: 5em;
   overflow: hidden;
   white-space: nowrap;
 }

However, that doesn't work in either Firefox or IE.  If I set
display:block, it sort of works in Firefox but IE (which is the target
for this intranet app) doesn't play the game at all.

table-layout:fixed doesn't seem to help either - or do I need to set
the widht of each column to make it work?

How can I force IE to clip table cells?

--
Rob
RobG - 26 Jun 2007 06:02 GMT
> I'm trying  to get table cells to clip content rather than wrapping.
> It has been suggested to use:
[quoted text clipped - 13 lines]
>
> How can I force IE to clip table cells?

I think I've go it: set table-layout:fixed, set a width for the table
and in IE, replace all spaces with  

How'd I go?  Amazing how you can beat your head against a wall for
quite some time, then within a few minutes of posting - the answer
appears.

--
Rob
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.