![]() |
|
|
|||||||
![]() |
HTML - Limit table cell content displayed? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Using IE 5.5 (sp2)
I have a table cell whose width is set to i.e <td width="100"> Several cells contents exceed this width, is there a CSS that can only display the 1st 100px's & chop the rest? Tried various combniations of style's using "width, clip, overflow" but seems to just completely ignores any of these settings! Sample table - <table> <tr> <td width="85"> Access</td> <td width="40"> aaaa</td> <td width="100"> 12345678901234567890123456789012345678901234567890 </td> <td width="112"> 1</td> <td width="111"> 1</td> </tr> </table> thanks harry harry |
|
|
|
|
#2 |
|
Posts: n/a
|
"harry" <> wrote:
>Using IE 5.5 (sp2) Is that relevant? What are your users using? >I have a table cell whose width is set to i.e <td width="100"> > >Several cells contents exceed this width, is there a CSS that can only >display the 1st 100px's & chop the rest? You need to set table-layout: fixed; for the table and specify a width for the table. Then you can specify overflow: hidden; for the cells you want cropped. It should go without saying that this isn't very user friendly - your visitors will need to disable CSS to see all the content of your page. Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor Steve Pugh <> <http://steve.pugh.net/> Steve Pugh |
|
|
|
#3 |
|
Posts: n/a
|
Thanks for that Steve will give it a go.
Sorry should have explained it's for an intranet with every user having the same browser & version As regards the chopping, I thought I'd set the cell's title attibute to the full value so they can see it as a tooltip! "Steve Pugh" <> wrote in message news:... > "harry" <> wrote: > > >Using IE 5.5 (sp2) > > Is that relevant? What are your users using? > > >I have a table cell whose width is set to i.e <td width="100"> > > > >Several cells contents exceed this width, is there a CSS that can only > >display the 1st 100px's & chop the rest? > > You need to set table-layout: fixed; for the table and specify a width > for the table. Then you can specify overflow: hidden; for the cells > you want cropped. > > It should go without saying that this isn't very user friendly - your > visitors will need to disable CSS to see all the content of your page. > > Steve > > -- > "My theories appal you, my heresies outrage you, > I never answer letters and you don't like my tie." - The Doctor > > Steve Pugh <> <http://steve.pugh.net/> harry |
|
|
|
#4 |
|
Posts: n/a
|
thanks mate - worked perfectly!
"harry" <> wrote in message news:b5eAc.2469$... > Thanks for that Steve will give it a go. > > Sorry should have explained it's for an intranet with every user having the > same browser & version > > As regards the chopping, I thought I'd set the cell's title attibute to the > full value so they can see it as a tooltip! > > > "Steve Pugh" <> wrote in message > news:... > > "harry" <> wrote: > > > > >Using IE 5.5 (sp2) > > > > Is that relevant? What are your users using? > > > > >I have a table cell whose width is set to i.e <td width="100"> > > > > > >Several cells contents exceed this width, is there a CSS that can only > > >display the 1st 100px's & chop the rest? > > > > You need to set table-layout: fixed; for the table and specify a width > > for the table. Then you can specify overflow: hidden; for the cells > > you want cropped. > > > > It should go without saying that this isn't very user friendly - your > > visitors will need to disable CSS to see all the content of your page. > > > > Steve > > > > -- > > "My theories appal you, my heresies outrage you, > > I never answer letters and you don't like my tie." - The Doctor > > > > Steve Pugh <> <http://steve.pugh.net/> > > harry |
|
|
|
#5 |
|
Posts: n/a
|
"harry" <> wrote:
Please don't top post. >As regards the chopping, I thought I'd set the cell's title attibute to the >full value so they can see it as a tooltip! And if they want to print it? Or cut and paste the text to another application? Design and layout are supposed to enhance and support content not obscure it, I think you're fixing the wrong problem. Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor Steve Pugh <> <http://steve.pugh.net/> Steve Pugh |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MCITP and stored procedure permissions | Darrilgibson@gmail.com | MCITP | 5 | 06-07-2008 12:37 PM |
| How to Add more than one Textbox in a table cell on the fly.... | tapasmahata | Software | 0 | 04-26-2008 06:37 AM |
| Enjoy DVD movies on your cell phone | senderila | Software | 0 | 07-26-2007 11:04 AM |
| SafeSquid: Content Filtering Internet Proxy - free 20 user edition released | Sachinpurohit | Software | 0 | 06-23-2007 04:34 PM |
| High Definition and the future of viewing. | Allan | DVD Video | 3 | 03-09-2005 12:56 AM |