chelvis
01-21-2004, 07:42 PM
I have website with some pages short and some are very long. Initially I had my website as a framed page and the bottom frame is only used to display some links and the copyright information. The reason I used as a framed page is even the page is very long, the bottom links will always show. But now I have to remove the frames. So I created this style sheet and it works fine in very short pages (pages which don't have to scroll). In these pages, the bottom links stays at the bottom of the browser. But with very long pages, when the page is loaded the bottom navigation links appears to stay at the bottom. But when I scroll they I see the links are cutting in the middle of the page content. Is there a way to fix this with some .css?
<html>
<head>
<style type="text/css">
#footer {
position: absolute;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="85%">
<tr><td valign="top">
There is a lot of text in this table which makes the table to scroll
</td></tr>
</table>
<!-- Footer potion -->
<div id=footer>
<table border="0" height="24" width="99%" cellspacing="0" cellpadding="0">
<tr><td CLASS="DYelbg" valign="top" height="2" colspan="2"><img src="images/sp.gif" border="0" height="2"></td></tr>
<tr><td CLASS="Blubg" align="left" valign="top" height="16" > <a CLASS="SWhite" href="home.html"target="home"><b>Home</b></a> <a CLASS="SWhite">|</a> <a CLASS="SWhite" href="mailto: email@me.com"><b>E-mail</b></a> <a CLASS="SWhite">|</a> <a CLASS="SWhite" href="javascript: window.open('privacy.html','NewWindow','status=yes,resizable,scrollbars=1,width=600,height=450');voi d('');"><b>Privacy Policy</b></a> <a CLASS="SWhite">|</a> <a CLASS="SWhite" <a CLASS="SWhite" href="sitemap.html" target="home"><b>Sitemap</b></a></td><td CLASS="Blubg" align="right" valign="top"><a CLASS="SWhite">Copyright © 2004</a> </td></tr>
<tr><td CLASS="DBlubg" height="2" colspan="2"><img src="images/sp.gif" border="0" height="2"></td></tr>
</table>
</div>
</body>
</html>
Can I use the div tag with a table as I have used?
<html>
<head>
<style type="text/css">
#footer {
position: absolute;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="85%">
<tr><td valign="top">
There is a lot of text in this table which makes the table to scroll
</td></tr>
</table>
<!-- Footer potion -->
<div id=footer>
<table border="0" height="24" width="99%" cellspacing="0" cellpadding="0">
<tr><td CLASS="DYelbg" valign="top" height="2" colspan="2"><img src="images/sp.gif" border="0" height="2"></td></tr>
<tr><td CLASS="Blubg" align="left" valign="top" height="16" > <a CLASS="SWhite" href="home.html"target="home"><b>Home</b></a> <a CLASS="SWhite">|</a> <a CLASS="SWhite" href="mailto: email@me.com"><b>E-mail</b></a> <a CLASS="SWhite">|</a> <a CLASS="SWhite" href="javascript: window.open('privacy.html','NewWindow','status=yes,resizable,scrollbars=1,width=600,height=450');voi d('');"><b>Privacy Policy</b></a> <a CLASS="SWhite">|</a> <a CLASS="SWhite" <a CLASS="SWhite" href="sitemap.html" target="home"><b>Sitemap</b></a></td><td CLASS="Blubg" align="right" valign="top"><a CLASS="SWhite">Copyright © 2004</a> </td></tr>
<tr><td CLASS="DBlubg" height="2" colspan="2"><img src="images/sp.gif" border="0" height="2"></td></tr>
</table>
</div>
</body>
</html>
Can I use the div tag with a table as I have used?