Solved

Keeping things at the bottom of a page.

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

759 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now