Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Keeping things at the bottom of a page.

Posted on 2004-04-07
2
Medium Priority
?
124 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

704 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