WordPress.org

Ready to get started?Download WordPress

Forums

Page jump down not working correctly, very strange, need any advice. (3 posts)

  1. faustina
    Member
    Posted 7 years ago #

    I have a strange problem with the "read more" feature and comment jump down. Technically they are working, but only for a split second and then the page moves to the middle of the comments list. If anyone can let me know what might be causing this or what I need to do to fix it would be greatly appreciated!

    A post where you can see the problem clearly:
    http://www.alittlepieceoftheworld.com/page/2/

    Main page:
    http://www.alittlepieceoftheworld.com

    I promise, this is the last problem I need help with! Thanks so much.

  2. bronto
    Member
    Posted 7 years ago #

    I didn't see the glitch here (probably because the image is cached), but I have seen a similar one often enough.

    On the reasonable assumption that the user prefers not to wait for all the images to download before seeing the text, the browser starts to display the page as soon as it gets any content at all. If the <img> does not contain the image size explicitly, the browser will make a first draft of the page layout with a minimum-size placeholder for the image. If the image is bigger than that placeholder, everything below it must move down – but by then the browser has already scrolled the window to the desired anchor-point, so the adjustment for the image often shifts the desired content down out of view. (Hitting "enter" in the address bar puts it right again.)

    Explicit size fields in the <img> ought to prevent this, but I've never had occasion to test that solution.

  3. faustina
    Member
    Posted 7 years ago #

    would that really make a difference when clicking the comment or more button?

    How would I check to make sure those sizes are in place? I upload the images directly into the post so I don't deal with the code for them at all.

    The wierd part is that when you select "more" the page jumps farther down than it's supposed to. when you select
    "comments" it ends up above where the comment field is.

    Any other suggestions are greatly appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags