Forums

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

Home Forums CSS wrapped a link

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #146217
    majidkhan
    Participant

    When a link is too long like more than the width of a wrapper then the link come out of the wrapper width. Looks OK in Firefox but not in IE at all.
    I tried overflow but it did not worked.
    http://jsfiddle.net/aK8K6/2/

    #146221
    Paulie_D
    Member
    a {
            white-space: pre-wrap; /* css-3 */    
        white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
        white-space: -pre-wrap; /* Opera 4-6 */    
        white-space: -o-pre-wrap; /* Opera 7 */    
        word-wrap: break-word; /* Internet Explorer 5.5+ */
    }
    
    #146225
    majidkhan
    Participant

    Thanks Paulie_D. It worked for me. If someone have table in content then must set “table-layout:fixed” property. As below: table { width:100%; table-layout:fixed; }

    Otherwise it will not work Originally from

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.