CaptainSlow Posted January 30, 2009 Share Posted January 30, 2009 Hi, I'm having a bit of trouble with a template i'm making. Basically the div named "page" only expands to the height of the window and not the height page. I've looked through the code and can't find a problem, am I missing something? Page you can see this happening on... http://www.eltonplayers.co.uk/where-to-find-us Please help, I'm pulling my hair out here trying to find the cause of this problem. Link to comment https://www.neowin.net/forum/topic/729126-template-problem-not-100-of-page/ Share on other sites More sharing options...
0 DaveLegg Developer Posted January 30, 2009 Developer Share Posted January 30, 2009 Instead of setting the height just put <div style="clear:both"></div> before the closing </div> of the body div. That will make sure it always extends to fit all the content. Link to comment https://www.neowin.net/forum/topic/729126-template-problem-not-100-of-page/#findComment-590502830 Share on other sites More sharing options...
0 CaptainSlow Posted January 30, 2009 Author Share Posted January 30, 2009 Thank you sooo much...that worked a treat. However I now have another problem... When there's not enough content, the "page" div doesn't stretch the whole window (imo making the page look odd). Any pointers as to how I can fix this? Many thanks... Link to comment https://www.neowin.net/forum/topic/729126-template-problem-not-100-of-page/#findComment-590502848 Share on other sites More sharing options...
0 primexx Posted January 30, 2009 Share Posted January 30, 2009 body,html { height:100%; } .page { min-height:100%; } Link to comment https://www.neowin.net/forum/topic/729126-template-problem-not-100-of-page/#findComment-590502862 Share on other sites More sharing options...
0 CaptainSlow Posted January 30, 2009 Author Share Posted January 30, 2009 Thank you soooo much. Working just how I wanted. Greatly appreciated that, thanks again! Link to comment https://www.neowin.net/forum/topic/729126-template-problem-not-100-of-page/#findComment-590502876 Share on other sites More sharing options...
Question
CaptainSlow
Hi, I'm having a bit of trouble with a template i'm making. Basically the div named "page" only expands to the height of the window and not the height page.
I've looked through the code and can't find a problem, am I missing something?
Page you can see this happening on... http://www.eltonplayers.co.uk/where-to-find-us
Please help, I'm pulling my hair out here trying to find the cause of this problem.
Link to comment
https://www.neowin.net/forum/topic/729126-template-problem-not-100-of-page/Share on other sites
4 answers to this question
Recommended Posts