Solved

Keeping things at the bottom of a page.

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

623 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