WordPress.org

Ready to get started?Download WordPress

Forums

Page content wont stay in div (5 posts)

  1. wilkie88
    Member
    Posted 2 years ago #

    Can anyone see anything that could cause my page content to not stay inside its div.

    [code moderated - remember to use the pastebin for any amount of code over 10 lines]

    http://pastebin.com/s32REXq9

  2. Jorge
    Member
    Posted 2 years ago #

    You need to clarify. I don't know if it's breaking on the X axis or the Y axis. What's the URL of the problem page?

  3. Tarsem Singh
    Member
    Posted 2 years ago #

    You want to display in <div id="content"> ?

  4. wilkie88
    Member
    Posted 2 years ago #

    Jorge,

    Sadly I am displaying my site in the browser using localhost so I can not send you the URL. I believe the issue lies within the <div id=entry-content></div>. The content goes in one strait line to the right and does not break properly when it hits the set width of the div.

    <div class="entry-content">
    <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'your-theme' )  ); ?>
    <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'your-theme' ) . '&after=</div>') ?>
                                            </div><!-- .entry-content -->
  5. Digital Raindrops
    Member
    Posted 2 years ago #

    The content goes in one strait line to the right and does not break properly when it hits the set width of the div

    As it is the content then it is likeky to be unclosed html tags in the post content, or content pasted from MS Word

    Test:
    Create a new post, get five paragraphs of Lorem Ipsum save and view, if this does not overflow, then it is the other posts content that is the problem.

    EDIT:
    Just found this topic from today about the line height :)

    HTH

    David

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.