• So, my page layout get’s broken like this:

    http://i48.tinypic.com/2w7lkdx.jpg

    I want to know how to set the main.content div to split the text instead of letting it go overflow…

    .maincontent {
    margin: 30px 0px 60px 0px;
    float: left;
    width: 960px !important;
    border: 2px solid red;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Put your text inside <p> elements.

    Thread Starter Lucas

    (@criatweb)

    I’ve added

    word-warp:break-word to the body tag and it splits the word but i don’t want to use this because it’s a CSS3 function (will not work in every browser) and i don’t want that the WORD get splitted.

    Thread Starter Lucas

    (@criatweb)

    Actually it randomly works properly. Some times it breaks the text into the right div area, but some times the text go overflow. Here’s the source code + site view of them:

    Working:
    http://i48.tinypic.com/15ppc1l.jpg

    Bugged:
    http://i50.tinypic.com/sw9r0n.jpg

    As you can see, in the bugged version it seems it treats the text as html or something, because the spaces turns to $nbsp

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Simple question about text formatting’ is closed to new replies.