• Resolved JudahsMom63

    (@judahsmom63)


    I’m creating a website for a friend using a theme I’m writing, and I’m working in a localhost environment. Right now the front page (home) looks great except for one thing: the major divs that wrap up the page content stop at the top of the page because my page content is not text but is html. I have sliders, scrolling lists and galleries but no long text strings. My html content resides between the header and the footer. I need a white background behind my html content, and the only way I’ve found to get it is to manually extend one of the major divs (like div id=”main”) by giving it a height in pixels. I find this to be impractical because someday someone may want to change the website or content, then suddenly the background becomes the wrong size because it was manually set. Any suggestions on how to wrap my html content in a background-holding div?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter JudahsMom63

    (@judahsmom63)

    Things I’ve tried: directly inserting the html into my front-page.php template. Didn’t work, divs were still stuck at the top of the page. Also tried putting text phrases around the html. The divs recognized the text phrases but not the html in between, so that didn’t work either.

    Thread Starter JudahsMom63

    (@judahsmom63)

    Latest attempt: wrapped my html content in an iframe. Getting closer, I think, but I keep getting a 404 error. Please, I’m doing my best to try to learn to be a quality coder. I’ll be eternally grateful to anyone who can help me.

    Thread Starter JudahsMom63

    (@judahsmom63)

    Forget it. I forced the major divs manually.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wrap html content in "page container"’ is closed to new replies.