Solved

Keeping things at the bottom of a page.

Posted on 2004-04-07
2
117 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 250 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

773 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