Title: Problem with wrapper div height
Last modified: August 19, 2016

---

# Problem with wrapper div height

 *  [greenmango112](https://wordpress.org/support/users/greenmango112/)
 * (@greenmango112)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/problem-with-height/)
 * Hi,
    I am having trouble with the #wrapper height in a template I am building.
   This is the structure of my webpage:
 * <start wrapper>
    <start/end header> <start/end C1> <start/end C2> <start/end 
   sidebar> <end wrapper>
 * CSS:
    html, body { height: 100%; background-image:url (THEURL); } #wrapper { 
   width: 46.875em; height: 100%; margin: auto; background: #ffffff; }
 * Essentially the wrapper is supposed to provide a white background so the content
   in the various columns is readable since the background-image is a different 
   color. The current setting: wrapper-height: 100% shows the white background stretching
   only to bottom of the loaded page, but nothing below as you scoll down further.
 * The reason I am posting this on the WP forums is because I have an inkling that
   the css reads 100% height for the body and wrapper as 100% of the page, but it
   cannot foresee what’s inside the php lines of the loop. Meaning it cannot see
   how long or short the content is. And hence parses 100% of only the browser window
   without scroll.
    I am sure a problem like this must have a solution. I just can’t
   find it online. And BTW, I really prefer to not use a fixed height for obvious
   reasons.

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/problem-with-height/?output_format=md) [1](https://wordpress.org/support/topic/problem-with-height/?output_format=md)
2

 *  Thread Starter [greenmango112](https://wordpress.org/support/users/greenmango112/)
 * (@greenmango112)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/problem-with-height/page/2/#post-834817)
 * Chrisber,
    I had a look at all the errors. They are errors caused by tags; such
   as using <img> instead of <img />, and the same for br, and several others repeated
   numerous times of each page. There are a few others that didn’t make much sense
   to me, faults that the validator picked out in javascripts, but oddly enough 
   all the scripts seem to be working.
 * What I mean to say is, none of those errors are due unclosed divs, which could
   cause my problem, or anything else even remotely related.
 * What I’m sure of though is that this is my fault, otherwise everyone would get
   this error with wp. I just can’t figure out where. If you wouldn’t mind, could
   you have a look at the validation errors and suggest something? If you group 
   them by type, they are very easy to read.
 * thanks!
 *  [nasirjumani](https://wordpress.org/support/users/nasirjumani/)
 * (@nasirjumani)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/problem-with-height/page/2/#post-834831)
 * I have the exact same problem of greenmango112. I have also tried all the hacks
   I know of. And currently my head is spinning off **🙁**

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/problem-with-height/?output_format=md) [1](https://wordpress.org/support/topic/problem-with-height/?output_format=md)
2

The topic ‘Problem with wrapper div height’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 17 replies
 * 6 participants
 * Last reply from: [nasirjumani](https://wordpress.org/support/users/nasirjumani/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/problem-with-height/page/2/#post-834831)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
