• Resolved conor909

    (@conor909)


    Hi,

    I have created a theme, but when I post images to it, it causes white banners to appear, running across the screen. I think the best way to explain is you to have a look, the link is..

    https://www.flexhk.com/wordpress

    Can anyone help please? I would be forever in debt!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator cubecolour

    (@numeeja)

    Try adding:

    #content p {
    max-width: 500px;
    }

    Thread Starter conor909

    (@conor909)

    [SOLVED!] massive thanks to you cubecolour!

    One thing though, the page height of my website is static, as my html cant see the end of my posts, so they over flow when adding posts with long info.. Do you know how to get the page height working with the end of the posts?

    Moderator cubecolour

    (@numeeja)

    If you don’t mind me going off at a tangent, your theme seems to be putting the header stuff in three times, so the stylesheet is specified each times. Do a view-source to see this. You should look at fixing that as it is causing validation errors:

    https://validator.w3.org/check?uri=http%3A%2F%2Fflexhk.com%2Fwordpress&charset=%28detect+automatically%29&doctype=Inline&group=0

    As for the height thing, try taking out

    height:1250px;

    from #content

    Thread Starter conor909

    (@conor909)

    Thanks for your reply’s cubecolour

    ok, thats strange. I only have one get_header tag in the Index.php. I dont know why thats happening. This is my first wordpress theme so im a an amateur. Any help would be appreciated.

    For the height, if I take out the [code]height:1250px;[/code] from #content, the footer jumps right up under my header, and the posts overflow on top..

    Im confused!

    Thread Starter conor909

    (@conor909)

    Ah ok I had the Index header code in all my .php files, including header.php and footer.php

    Thanks for the advice!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Vertical aligned images in posts causing overflowing?’ is closed to new replies.