SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard GoldFire's Avatar
    Join Date
    Oct 2002
    Location
    Oklahoma City, OK
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow Word Wrap Not Working In Mozilla...

    I have a shoutbox on the side of a new site I am working on, and in IE the following code works great to make the text and smilies in the shoutbox wrap. But in Mozilla it doesn't work at all.

    Code:
    <td align="left" style="word-wrap: break-word;width: 150px;">

  2. #2
    SitePoint Addict
    Join Date
    Jul 2000
    Posts
    201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "word-wrap: break-word" is a Microsoft-only attribute. It won't work in any browser but IE

  3. #3
    SitePoint Wizard GoldFire's Avatar
    Join Date
    Oct 2002
    Location
    Oklahoma City, OK
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well is there another way I can do a word wrap on my shoutbox?

  4. #4
    SitePoint Wizard GoldFire's Avatar
    Join Date
    Oct 2002
    Location
    Oklahoma City, OK
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is the only sure way to just put spaces in with php every x number of characters? I can't do it like that though because it cuts into the html also...which messes up the smilies.

  5. #5
    SitePoint Wizard GoldFire's Avatar
    Join Date
    Oct 2002
    Location
    Oklahoma City, OK
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone have any ideas?

  6. #6
    SitePoint Evangelist ClevaTreva's Avatar
    Join Date
    Jan 2004
    Location
    Chipping Campden, UK
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    No way to do it, just use php to chop words.

    The usual problem is long urls without the text label, so use php to put some shortened label in.

    word-wrap can cause ie problems too!





    Trevor


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
  •