jasperdj
11-09-2011, 09:38 PM
So here is the situation:
I made the 'header & begin content-page' as one background.
I made a footer that will come under this header also with a background that fits nicely.
Then i added content manually with a div and some margin, but of course you want to automatically expand the page so the content fits inside.
But HOW would i accomplish this?
This might make it more understandable:
<div id="content-singlepage"> <!-- This had the first background -->
<div id="page-content">
Content blablbaa
</div>
</div>
<div class="extend"></div> <!-- background for extending between header & footer -->
<div id="footer">.</div><!-- background for footer -->
Css:
#content-singlepage {
background-image:url("images/Header-test.png");
background-repeat:no-repeat;
height:549px;
}
#page-content-container {
max-width:850px;
width:850px;
height:300px;
margin:0 auto;
margin-top:240px;
}
#page-content {
max-width:850px;
width:850px;
text-align: justify;
padding:15px;
}
.extend {
background-image:url("images/extender.png");
background-repeat:repeat-y;
height:100px;
margin-left:95px;
}
#footer {
background-image:url("images/footer.png");
background-repeat:no-repeat;
height:334px;
}
PREVIEW (http://jdejong.org/craftedmovie/singlepage.html)
I made the 'header & begin content-page' as one background.
I made a footer that will come under this header also with a background that fits nicely.
Then i added content manually with a div and some margin, but of course you want to automatically expand the page so the content fits inside.
But HOW would i accomplish this?
This might make it more understandable:
<div id="content-singlepage"> <!-- This had the first background -->
<div id="page-content">
Content blablbaa
</div>
</div>
<div class="extend"></div> <!-- background for extending between header & footer -->
<div id="footer">.</div><!-- background for footer -->
Css:
#content-singlepage {
background-image:url("images/Header-test.png");
background-repeat:no-repeat;
height:549px;
}
#page-content-container {
max-width:850px;
width:850px;
height:300px;
margin:0 auto;
margin-top:240px;
}
#page-content {
max-width:850px;
width:850px;
text-align: justify;
padding:15px;
}
.extend {
background-image:url("images/extender.png");
background-repeat:repeat-y;
height:100px;
margin-left:95px;
}
#footer {
background-image:url("images/footer.png");
background-repeat:no-repeat;
height:334px;
}
PREVIEW (http://jdejong.org/craftedmovie/singlepage.html)