WordPress.org

Ready to get started?Download WordPress

Forums

My website has an error (6 posts)

  1. howmanycaloriesinapizza
    Member
    Posted 2 years ago #

    My website is http://howmanycaloriesinasliceofpizza.net/.
    In the contents of my article, there is a redundant space above the image.
    For example:
    http://howmanycaloriesinasliceofpizza.net/how-many-calories-are-in-an-apple/
    http://howmanycaloriesinasliceofpizza.net/should-you-eat-more-eggs/

    But some don't have an this error:
    For example: http://howmanycaloriesinasliceofpizza.net/how-many-calories-in-a-slice-of-pizza/

    Can you help me, please ! Thank you very much !

  2. President McCheese
    Member
    Posted 2 years ago #

    <div id="attachment_272" class="wp-caption aligncenter" style="width: 310px"><img class="size-full wp-image-272" title="apple" src="http://howmanycaloriesinasliceofpizza.net/wp-content/uploads/2012/02/apple.jpg" alt=" apple nutrition facts, apple fruit nutrition" width="300" height="261"><p class="wp-caption-text">Health Benefits Of Eating Apples</p></div>

    Conflicting width settings. One says 310px and the other is 300px. Remove the 310px and see what happens.

  3. President McCheese
    Member
    Posted 2 years ago #

    It is probably a css padding or margin setting conflicting with the container width setting. Reduce the size of the image or increase the size of the container.

  4. howmanycaloriesinapizza
    Member
    Posted 2 years ago #

    I reduced the image but not success. How to increase the size of the container ? Please help me ! Thanks !

    I realized one thing that if the images have caption, they has an error

  5. President McCheese
    Member
    Posted 2 years ago #

    <div id="attachment_272" class="wp-caption aligncenter" style="width: 310px"><img class="size-full wp-image-272" title="apple" src="http://howmanycaloriesinasliceofpizza.net/wp-content/uploads/2012/02/apple.jpg" alt=" apple nutrition facts, apple fruit nutrition" width="300" height="261"><p class="wp-caption-text">Health Benefits Of Eating Apples</p></div>

    Change aligncenter to alignnone.

  6. howmanycaloriesinapizza
    Member
    Posted 2 years ago #

    Thanks but I have a lot of images. So, It's hard to edit manually. What should I do ?

    [ Please do not bump, it's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags