jhatter
12-08-2009, 11:37 AM
Hi,
Newby question.... please can someone suggest a way of making the #content section of my website vertically 'elastic' to allow for more content as-and-when required. ie #content expands downwards and #footer moves with it.
Minimum height of #content section would be 340px.
I have included the CSS (but obviously everything).
I'm assuming this is all you will need, but if you require any other info - please let me know.
Thanks!
body {
text-align: center;
background-color: #FFFFFF;
background-image: url(images/frun-body-grad.jpg);
background-repeat: repeat-x;
background-position: top;
}
#master {
width: 810px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
position: relative;
left: 0px;
top: 0px;
height: auto;
}
#header {
position:absolute;
left:0px;
top:0px;
width:810px;
height:300px;
background-image: url(images/frun-header.png);
background-repeat: no-repeat;
}
#content {
position:absolute;
left:0px;
top:300px;
width:810px;
height:340px;
background-image: url(images/frun-content-bg.png);
background-repeat: repeat-y;
}
#footer {
position:absolute;
left:0px;
top:640px;
width:810px;
height:50px;
background-color: #FFFFFF;
background-image: url(images/frun-footer.jpg);
background-repeat: no-repeat;
background-position: bottom;
}
Newby question.... please can someone suggest a way of making the #content section of my website vertically 'elastic' to allow for more content as-and-when required. ie #content expands downwards and #footer moves with it.
Minimum height of #content section would be 340px.
I have included the CSS (but obviously everything).
I'm assuming this is all you will need, but if you require any other info - please let me know.
Thanks!
body {
text-align: center;
background-color: #FFFFFF;
background-image: url(images/frun-body-grad.jpg);
background-repeat: repeat-x;
background-position: top;
}
#master {
width: 810px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
position: relative;
left: 0px;
top: 0px;
height: auto;
}
#header {
position:absolute;
left:0px;
top:0px;
width:810px;
height:300px;
background-image: url(images/frun-header.png);
background-repeat: no-repeat;
}
#content {
position:absolute;
left:0px;
top:300px;
width:810px;
height:340px;
background-image: url(images/frun-content-bg.png);
background-repeat: repeat-y;
}
#footer {
position:absolute;
left:0px;
top:640px;
width:810px;
height:50px;
background-color: #FFFFFF;
background-image: url(images/frun-footer.jpg);
background-repeat: no-repeat;
background-position: bottom;
}