• I have a problem with the text/content of a post running off the page through the sidebar as if no parameters are in place in the coding. Is there a code that can be edited to force it to stay inside a certain amount of pixels?

    You can see it at danielcrisler.com

    Thanks,

    Jon

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s because it’s all one long string and the browser won’t break it but you can force it to stop showing after the content box is reached. Add this to your style.css file.

    .topPost {
    overflow:hidden;
    }

    i found this somewhere, breaks all kinds of long strings:

    .topContent {
     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+ */
     }
    Thread Starter jonathoncraig

    (@jonathoncraig)

    Thanks Jeremy,
    That worked to *end* the(cutting it off) content of the post at the border but is there a code to wrap the content?
    Sorry I’m new to css, I’m going off my old school HTML knowledge.

    Thanks for the help!

    If you worried about posting long strings like that then give alchymyth method a try likes like it should work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post running off page….’ is closed to new replies.