SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: text wrapping

  1. #1
    SitePoint Guru
    Join Date
    Dec 1999
    Location
    Southampton, Hants, UK
    Posts
    672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    text wrapping

    any ideas in css how to stop text in a table cell wrapping over 2 lines?

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Try white-space:nowrap.
    Code:
    td#test{white-space:nowrap}
    Where test is the id of the cell that you want to stop breaking. It will stretch the table though.

    Paul


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •