Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Keeping things at the bottom of a page.

Posted on 2004-04-07
2
Medium Priority
?
126 Views
Last Modified: 2010-04-09
Hello,

I have a table that I'm using as a navigation bar.  Is there a way to keep it at the bottom of the page.

Thanks for the help!!

Tab26
0
Comment
Question by:tab26
2 Comments
 
LVL 4

Accepted Solution

by:
monolith_888 earned 750 total points
ID: 10777971
If you're using IE, an easy solution is to use the bottom attribute of position:

<html><head>
<title>t2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
div table {position:absolute;bottom:2px;left:0px;}
div table tr td {text-align:center;background:#666;color:#fff;font-family:tahoma;font-size:12px;cursor:hand;}
</style>
</head><body bgcolor="#ffffff">
<div>
<table border=0 cellpadding=0 cellspacing=0 width=100%><tr>
  <td width="13" style="background:#fff;"><img src="blank.gif" width="13"></td><td>Nav1</td><td>Nav2</td><td>Nav3</td><td>Nav4</td><td>Nav5</td>
</tr></table>
</div>
</body></html>
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 10778563
<html>
<head>
<title> NAV on Bottom </title>
<style>
    body {color:darkslategray;background-color:antiquewhite}
    #nav {position:absolute;}
</style>
<script language="JavaScript">
<!--
  function positionIt()
  {
    obj=document.getElementById('nav');
    H=document.body.clientHeight
    divH=obj.offsetHeight;
    T=H-divH;
    obj.style.top=T+"px";
    }
//-->
</script>

</head>
<body onLoad="positionIt()" onResize="positionIt()">
<div id="nav">
The code for nav goes here</div>
</body>
</html>



Cd&
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question