• Resolved gs_s

    (@gs_s)


    Hello,

    I’m wondering how I can keep a certain height on the content body. I mean when I create a page with short sentences, the footer squeezes up to the last sentence and the web site layout doesn’t keep consistent on every other pages.

    So, I tried to put style="height:600px;" in the <div class="container"> tag in header.php. But it seems not working.

    Does anybody have a good solution for this? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • there is also ‘min-height:’ or ‘padding’ or ‘margin’ to keeps things a certain size or distance.

    without seeing the site in question, nobody will be able to give you any ‘good’ solution.

    link?

    Thread Starter gs_s

    (@gs_s)

    Thanks for the response, alchymyth.

    This is the link,
    Short Page
    http://gsstudio.comeze.com/wordpress/?page_id=7
    Long Page
    http://gsstudio.comeze.com/wordpress/?page_id=9

    I don’t mind a long post get’s the length to be long. I just want a short page not to be too short and keep a certain length.

    #wrapper is the overall div, so putting a min-height onto it might work:
    edit style.css, find:

    #wrapper {
    	background: #fff;
    	margin-top: 20px;
    	padding: 0 20px;
    }

    add the min-height: 800px; (use your own number)

    #wrapper {
    	background: #fff;
    	margin-top: 20px;
    	padding: 0 20px;
    min-height:800px;
    }
    Thread Starter gs_s

    (@gs_s)

    #wrapper {
    	background: #fff;
    	margin-top: 20px;
    	padding: 0 20px;
    min-height:800px;
    }

    Somehow this did not work so I tried the following and it worked! I would not be able to do this without your help. I really appreciate it. Thank you so much.

    #wrapper {
    	background: #fff;
    	margin-top: 20px;
    	padding: 0 20px;
    }
    #main {
    	min-height:800px;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Keep Height of Content Body’ is closed to new replies.