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

x
?
Solved

footer positioning?

Posted on 2002-05-10
6
Medium Priority
?
260 Views
Last Modified: 2010-04-09
Hello

I have some pages that I want to have a common footer - which is a table that has a thin rectangle gif, and a back, top, and home buttons in it.
I'd like it to display at the "bottom" of the page as consistently as possible, preferably regardless of screen resolution, or how the window is resized.
How can I do that?

thanks

v
0
Comment
Question by:vlg
[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
6 Comments
 
LVL 18

Expert Comment

by:bruno
ID: 7001878
use server side includes if you can, and just put it at the bottom of the page...
0
 

Author Comment

by:vlg
ID: 7001885
How does one server side include something, and what specifically would I have to server side include to make it go to the bottom?

v
0
 
LVL 17

Expert Comment

by:dorward
ID: 7002222
See the "faking position: fixed" for IE6 item: http://home.deds.nl/~thebox/ghost/index.html

You will probably want a fixed horizontal bar.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 400 total points
ID: 7003213
I think what you need will go something like this:

The stuff you want at the bottom has to be in a layer (absolutely
positioned div for compatibility) like this:
<div id="thediv" style="position:absolute;top:0;left:0;visibility:hidden">

The do the body tag this way:

<body onLoad="positionit()">

This goes in the head:

<script language="JavaScript">
<!--
   var obj;
   var H;
   var divH;
   var T;

   function positionit()
   {
      if (document.all)
      {
         obj=document.all['thediv'];
         H=document.body.clientHeight;
         divH=obj.clientHeight;
      }
      else
      {
         if (document.layers)
         {
            obj=document.layers['thediv'];
            H=window.innerHeight;
            divH=obj.documentHeight;
         }
         else
         {
            obj=document.getElementById('thediv');
            H=window.innerHeight;
            divH=obj.offsetHeight;
         }
      }
      T=H-divH;
      if (NS4)
      {
         obj.top=T;
         obj.visibility="visible";
      }
      else
      {
         obj.style.top=T;
         obj.style.visibility="visible";
      }
    }
//-->
</script>

I don't have time to play with it, but it should be pretty close.  Might
need some adjustments for margins and such.

Cd&
0
 

Author Comment

by:vlg
ID: 7003349
Seems to work!
Cd& - any good links to learn more about layers?

thanks

v
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7003367
A good place to start with layers in dynamic HTML is:

http://www.dansteinman.com/dynduo/index.html

They have clear explanations and good examples that can be applied to a lot of different situations.

Glad we could help.  Thanks for the A. :^)

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

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.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
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 how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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