WordPress.org

Ready to get started?Download WordPress

Forums

Odd blank spaces appearing in template (6 posts)

  1. seanherron
    Member
    Posted 6 years ago #

    Hi everyone,

    After creating a template for my site, I've noticed that there are large blank rectangles appearing between the header and the body and the body and the footer. I don't see anywhere in my code where this could be happening. Here's a link to my test site so you can see the problem...

    http://www.westranchtv.com/beta

    Anyone ever had this problem before?

    Thanks,
    Sean

  2. Meyithi
    Member
    Posted 6 years ago #

    A quick 5 second look at the page source and I can see two line breaks, co-incidentally they are exactly where your gaps are.

  3. ancawonka
    Member
    Posted 6 years ago #

    I think your problem is the HR/ tags between the header div and the content div, and then between the content and the footer... those tags take up vertical space, along with the line, so you might need to fix the padding on the CSS for those (or use something like a border-bottom/border-top style for those divs if you are trying to create lines)

  4. seanherron
    Member
    Posted 6 years ago #

    Hey, thanks for the suggestions!

    I took out the HR tags and yet the black lines are still there...I don't want there to be any lines at all (it should be one solid block). There's no padding in the CSS at all so I have no clue why the spaces are there.

    Thanks,
    Sean

  5. Meyithi
    Member
    Posted 6 years ago #

    Try setting the background image divs to display inline, they typically default to block.

  6. seanherron
    Member
    Posted 6 years ago #

    Hey Meyithi,

    I tried that, as well, but it unfortunately didn't do anything.

    Would having the source code for my theme help?

Topic Closed

This topic has been closed to new replies.

About this Topic