XiRoCCo
11-03-2006, 06:52 PM
the situation:
i'm working on a new site design that requires that the page length (vertical - top to bottom) stretch to 100% of the browser's height. after working on my CSS, i have the page stretching to 100% of the height of each users screen.
link to the site (in development):
www.newventureattorneys.com/_nva
the problem:
the footer which consists of the bottom left corner piece, and the words "professionalism trust & integrity", when viewed in a vertically small browser window will overlap the text above it. try shrinking the height of your browser while viewing this page and you'll see what i mean.
my desire:
i would like the site to be 100% in height, and also for the bottom graphics to extend downward, creating a vertical scroll bar as text and content on any given page pushes down into the footer area.
the question:
what changes can i make that will allow the footer to show at the bottom of the page UNLESS there is more verticle text/content on the page - whereby i would rather just have the footer disappear off the bottom of the page (downward) and have a vertical scroll bar appear?
the code:
following is my current code from my main index.html and style.css. techically speaking, this site is being developed within a CMS (phpWebSite) and the index is actually a different file stored within a theme folder - but as far as design goes, works the same.
index.html<body bgcolor="#000000" leftmargin="0" topmargin="0">
<table width="775" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="775" valign="top" bgcolor="#FFFFFF" id="mainTable">
<div id="header"><img src="{THEME_DIRECTORY}images/theme/nva-theme01.jpg" width="586" height="145" /></div>
<div id="content">{TOP} {BODY} {BOTTOM}</div>
<div id="footer"><img src="{THEME_DIRECTORY}images/theme/nva-theme08.jpg" alt="" width="354" height="125" border="0" />
<div id="copyright">{COPYRIGHT}</div></td>
<td width="189" valign="top" id="rightTable"><div id="rightColumn">{LEFT_COL_TOP} {LEFT_COL_MID} {LEFT_COL_BOTTOM} {RIGHT_COL_TOP} {RIGHT_COL_MID} {RIGHT_COL_BOTTOM}</div>
<img src="{THEME_DIRECTORY}images/theme/spacer.gif" width="189" height="1" /></td>
</tr>
</table>
</body>Please consider any content from the index.html shown in brackets "{ }" as valid html content. phpWebSite will replace these values with database content when the site is in production.
style.css - these are just the pertinant sections for this post
/***** HEADER *****/
#header {
height:145px;
padding:0px;
margin:0px;
position: absolute;
top: 0px;
}
/***** CONTENT *****/
#content {
width:470px;
padding:160px 42px 0px 74px;
}
/***** FOOTER *****/
#footer {
height:125px;
padding:0px;
margin-left:0px;
position: absolute;
bottom: 0px;
}thanks in advance any help you can give...
--kevin
i'm working on a new site design that requires that the page length (vertical - top to bottom) stretch to 100% of the browser's height. after working on my CSS, i have the page stretching to 100% of the height of each users screen.
link to the site (in development):
www.newventureattorneys.com/_nva
the problem:
the footer which consists of the bottom left corner piece, and the words "professionalism trust & integrity", when viewed in a vertically small browser window will overlap the text above it. try shrinking the height of your browser while viewing this page and you'll see what i mean.
my desire:
i would like the site to be 100% in height, and also for the bottom graphics to extend downward, creating a vertical scroll bar as text and content on any given page pushes down into the footer area.
the question:
what changes can i make that will allow the footer to show at the bottom of the page UNLESS there is more verticle text/content on the page - whereby i would rather just have the footer disappear off the bottom of the page (downward) and have a vertical scroll bar appear?
the code:
following is my current code from my main index.html and style.css. techically speaking, this site is being developed within a CMS (phpWebSite) and the index is actually a different file stored within a theme folder - but as far as design goes, works the same.
index.html<body bgcolor="#000000" leftmargin="0" topmargin="0">
<table width="775" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="775" valign="top" bgcolor="#FFFFFF" id="mainTable">
<div id="header"><img src="{THEME_DIRECTORY}images/theme/nva-theme01.jpg" width="586" height="145" /></div>
<div id="content">{TOP} {BODY} {BOTTOM}</div>
<div id="footer"><img src="{THEME_DIRECTORY}images/theme/nva-theme08.jpg" alt="" width="354" height="125" border="0" />
<div id="copyright">{COPYRIGHT}</div></td>
<td width="189" valign="top" id="rightTable"><div id="rightColumn">{LEFT_COL_TOP} {LEFT_COL_MID} {LEFT_COL_BOTTOM} {RIGHT_COL_TOP} {RIGHT_COL_MID} {RIGHT_COL_BOTTOM}</div>
<img src="{THEME_DIRECTORY}images/theme/spacer.gif" width="189" height="1" /></td>
</tr>
</table>
</body>Please consider any content from the index.html shown in brackets "{ }" as valid html content. phpWebSite will replace these values with database content when the site is in production.
style.css - these are just the pertinant sections for this post
/***** HEADER *****/
#header {
height:145px;
padding:0px;
margin:0px;
position: absolute;
top: 0px;
}
/***** CONTENT *****/
#content {
width:470px;
padding:160px 42px 0px 74px;
}
/***** FOOTER *****/
#footer {
height:125px;
padding:0px;
margin-left:0px;
position: absolute;
bottom: 0px;
}thanks in advance any help you can give...
--kevin