wrap-up text in table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anju07
    New Member
    • May 2007
    • 12

    wrap-up text in table

    i need to limit the display of the column date in my table?I used css property:width, but, in case the field width exceeds it scrolls over to the next line, i do not want that, i want to view the rest of the text only if i scroll over
    how can that be achieved?
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Use overflow:scroll

    Comment

    • anju07
      New Member
      • May 2007
      • 12

      #3
      Originally posted by drhowarddrfine
      Use overflow:scroll

      Hi, i used this and it works, but i have just another problem:


      Problem 1: The scrollbars are visible[though disabled] even when the text to be viewed is within the column width limit, how do i make it visible only when the the text is large and cannot fit the column widht?

      Problem 2: Can i decrease the height and width of the scrollbars in any way?

      This is what ive used:-
      <tr>
      <td >
      <div style="width:90 px; height: 10px; text-align: center;
      overflow-x:scroll;white-space: nowrap;">
      just some text that is scrollable
      </div>
      </td>

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        1) I'm going to say 'no' but I recall reading about this somewhere and don't recall the conclusion. I'll look for it.
        2) No.

        From what I read, overflow-x does not work right in IE.

        Comment

        Working...