Forums

Post running off page.... (5 posts)

  1. jonathoncraig
    Member
    Posted 2 years ago #

    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

  2. Jeremy Clark
    Moderator
    Posted 2 years ago #

    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;
    }
  3. alchymyth
    The Sweeper
    Posted 2 years ago #

    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+ */
     }
  4. jonathoncraig
    Member
    Posted 2 years ago #

    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!

  5. Jeremy Clark
    Moderator
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.