SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    64
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Force linebreaks if no whitespace exists!? (Opera)

    Hi guys...and gals...

    Having some problems here...

    Just started on a website that's going to be in Thai...and Thai in writing doesn't have any spaces in between the words, just the sentences...

    And in IE, Firefox and Chrome that doesn't become any problem....the line still breaks when it's suppose to...ie when the width of the containing element is reach...

    ...but in Opera that doesn't happen, it "needs" a white space to make a line break, so it breaks the design.

    Anyone with any pointers or tips to this problem?

  2. #2
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,625
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Here are probably all the ways to do it... http://www.visibilityinherit.com/code/wrap-text.php

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Out of all of those I'd use the HTML entitiy and the break-word. Combine them and it should be supported everywhere for you
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  4. #4
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a known bug in Opera. I'd recommend waiting for it to be fixed. If you want to apply a workaround, it seems specifying 'word-wrap:break-word' works.
    Simon Pieters


Tags for this Thread

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
  •