Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Prevent line break in table cells

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30408
    Danny9
    Member

    Hi, my tables are rendering different lengths in Firefox and IE due to firefox rendering something like:

    XXXX or XXXX
    onto two lines like this:

    XXXX
    or XXXX

    IE puts the whole thing on one line (as I would expect and want as there’s enough space in the cell for all the characters)

    I have lots of these cells, all in the final column of 3 column tables so ideally I’d like to not have to go into each cell and add something but would like a class or style that fixes all of the cells in the last column.

    Thanks

    #78661
    Danny9
    Member

    I’ve added nowrap to one of the cells and it works fine firefox now displays
    xxxx or xxxx on one line

    Any way to make all cells in the column “nowrap”?

    #78664
    Damion
    Member

    You could set it in the css for all tr’s


    table tr {
    white-space:nowrap;
    }
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.