I'm currently working on organizing the layout for a basic gallery webapp, and I've encountered an issue where some of my divs are shrinking in height when using an HTML5 doctype declaration. Despite trying different CSS properties, I can't seem to adjust them back to their original size.
You can view my HTML at and the CSS at
- Removing the HTML5 doctype declaration resolves the issue, but I prefer using the proper HTML5 doctype.
- With the doctype set to HTML 5 and no other changes, the photo and footer divs disappear, likely due to having a height of 0px.
- Even with setting the heights in pixels or percentages for the body and container, they don't appear as full height as desired.
- Trying to set the body height to 100% results in the same disappearing act by the photo and footer divs.
What steps should I take to ensure that the photo and footer divs are fully visible with a 100% height?