www.webdeveloper.com
Results 1 to 5 of 5

Thread: Word-Wrap

  1. #1
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063

    Word-Wrap

    Is that standard CSS, or just something from Microsoft? If it's not standard, what do you do in order to achieve that effect with standard CSS?

  2. #2
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    it's part of the CSS3 specs.
    http://www.w3.org/TR/css3-text/#word-wrap

    I don't think there's a CSS2 implementation though...
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  3. #3
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063
    If it's not standard, then what are you supposed to do if the text is too long for the containing element, such as a div or table?

  4. #4
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    http://www.quirksmode.org/oddsandends/wbr.html

    the later half proposes using the wbr tag with the CSS:
    Code:
    wbr:after { content: "\00200B" }
    this will solve the problem in all the common browsers(although the sooner CSS3 comes in mainstream use the better).
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  5. #5
    Join Date
    Dec 2007
    Location
    Mississippi
    Posts
    1,063

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles