Keep footer div at the bottom of the page

ok, really simple im sure, il i want to do is keep a div at the bottom of the page.. not the browser window so it can always be seen, but at the bottom of all the content, what information would i apply to this div? ive tried top;100% minus the height of the div, no luck, any help would be great thanks.

Try something like this:
First define your html code like this:
<div id="container">
     <div id="content">
          <h1>Content</h1>
          <p>Please resize the browser window to see how your 100% CSS footer behaves. </p>
          <p>Some more text here</p>
     </div>
     <div id="footer">
          <h1>Footer</h1>
     </div>
</div>
Next create your CSS like this:
<style type="text/css">
          <!--
               html, body {
                    height: 100%;
               body {
                    margin: 0;
                    padding: 0;
                    font: 12px/1.5 verdana, arial, helvetica, sans-serif;
               #container {
                    position: relative;
                    min-height: 100%;
                    height: 100%;
                    voice-family: "\"}\"";
                    voice-family: inherit;
                    height: auto;
               html>body #container {
                    height: auto;
               #content {
                    padding: 10px;
                    background-color: #a6c;
                    padding-bottom: 48px;
               #footer {
                    position: absolute;
                    bottom: 0;
                    padding: 10px;
                    background-color: #609;
                    width: 75%;
               #footer h1 {
                    color: #fff;
                    padding-bottom: 0;
               h1, p {
                    margin: 0;
                    padding-bottom: 1em;
               h1 {
                    font-size: 12px;
                    line-height: 1.5em;
          -->
          </style>
This is all there is to it in a nutshell.  It can be modified to work in old browsers but that is another question.

Similar Messages

  • How do I keep the Spry menu fixed to the bottom of the header div?

    I have created a horizontal Spry menu bar using Dreamweaver CS4 but the problem is, I can't figure out how to make it be in the right position at the bottom of the header div. In Design View it is too far below the header background graphic, in Live View it cuts off the bottom of the header graphic, and it also looks higher or lower in Safari and Firefox.
    I'm sure it's very simple, but how can I control them menu on the y-axis and keep the menu fixed to the bottom of the header div? Is there a way to float it to the bottom?
    I really appreciate any help or advice anyone can give me on how to get a stationary menu bar.

    Below is an example of a fixed-header & footer layout with jQuery smooth scrolling.   I did not use a separate scrolling div because mobile users have lots of trouble with them.
    View source to see the code. 
    http://alt-web.com/TEMPLATES/FixedLayout.shtml
    You need 4 basic things:
    jQuery latest core library,
    jQuery easing.js,
    jQuery anchor.js, inside the <head> of your document
    jQuery function code,  near the bottom of your document.
    That's all there is to it.
    Nancy O.

  • PC/64/Windows 7/XIStandard recently installed/unable to put footer into document because I can't move to the bottom of the image when in footer application mode.  Display is at recommended 1920x1080.  Is there a solution or is it a flaw in the program?

    PC/64/Windows 7/XIStandard recently installed/unable to put footer into document because I can't move to the bottom of the image when in footer application mode.  Display is at recommended 1920x1080.  Is there a solution or is it a flaw in the program?

    Don't have a direct answer. But did you install the updates. They might resolve the problem.

  • Footer at the bottom of the page in Smartforms

    Hi All,
    I need to print some Sales data and then a hard coded paragraph at the end of last page of the print out n Smartform.
    Now the problem is:
    1. If I put that paragraph in the footer then it prints as soon as the data ends in main window and not at the bottom of the page. Eg : If the data ends at the 5 line of the second page then the paragraph is printed immediately after that and not at the bottom.
    2. If I put it in another window and give the option only after end of main window then except the last page that space for that window is empty and if I try to overlap main window then even on the last page if the data is till end of that page main window data gets overlapped on the hardcoded paragraph.
    Please help me on the issue.
    Thanks,
    Sameer
    Edited by: sameer_rk022 on Mar 31, 2011 10:04 AM

    Hi,
    Solution: The issue faced after overlapping the main window with footer window can be achieved by creating a folder within the main window and using the events to check whether there is enough space to print the footer.
    Following are the steps.
    Step 1:  Create a Secondary window say “Footer” which would be the footer window. Overlap the main window on the footer window as shown below.   
    The footer window will be behind the main window
    Step 2:  Create a folder within the main window say “Check_Footer”.
    Go to Tab “Events”, select the checkbox “Footer with Height” and give the required height of the footer. Select the checkbox “at End of Table”. Specify the “Minimum height” as required.
    Now, go to “Conditions” tab and select the checkbox “Only before end of main window”.   
    This is basically done to check whether there is enough space to print the footer on that page. The Footer window would then print the output.
    Step 3: Go to the created “Footer” window .Under the Conditions tab, select the checkbox “Only after end of main window”. Create a  text/tamplate/window whatever you want to display at bottom or footer data.
    Step 4: Save & Activate the Smartform and check the output.
    regards
    Rohit

  • Footer at the bottom of the last page only

    I am doing a dynamic form which has drop down rows (click the + button, then a new row will be created, so the user can have as many rows they prefer, then there is a footer with E-signature in it (hopefully the footer can be shown at the last bottom page only) ).
    My issue now: So when I have 2 pages of forms in total, the bottom of the first and second page will both have the footer (Signature). However, if there are 3 pages of form in total: the bottom of the first and third page will both have the footer (Signature), but not the second page.
    What I want: How can I ONLY have the footer (signature) at the bottom of the last page, not on the first page, no matter how many rows and pages the user created  ?
    I can screen shot the form if needed. Please help.
    Many thanks

    Hi,
    Find the total number of pages which is a standard variable and also the current page number which is a standard variable. Using events hide in other pages or make it visible only in last page

  • Footer not staying at the bottom of the content

    I am making a new website -- tomperkowitz.com -- and the footer sticks to the bottom of the browser page leaving a big white space when the browser window is taller than the content. I would like the footer to remain at the bottom of the content (like the first image below) and not stick to the bottom of the window (as shown in the second image below.
    I have another site - horizonshades.com - made with Muse where the footer stays as I want to, but I don't know what I am doing different/wrong with this new site.
    Any help would be appreciated.

    Have you unchecked Sticky Footer in the Page Properties?

  • Why is the div sitting at the bottom of the page?

    Can anyone tell me why the div <div id="maindiv" class="maindiv_scroll">  is sitting at the bottom of the page?
    http://www.milesfunerals.com/nafd.php

    I have not tested this BUT most probably the scrollbar on the central <div> is making the width of the <div> wider than the space it has to fit itself into so the <div> is being thrown to the next available space, at the bottom of the construction. Below I have commented out the overflow: scroll; - see what effect it has, if any.
    .maindiv_scroll {
        width:100%;
        max-width:812px;
        background-image: url(images/scrollbgnew.jpg);
        /* overflow:scroll; */
        background-repeat: no-repeat;
        margin-left: 138px;
        height:1176px;
        border-top: 1px solid #F4ECC5;
    I don't want to be the bringer of bad news (again) but you really are getting into a bit of a mess. This is largely down to excessive css. When it gets to that amount of css you should try breaking it down, ie you could put the mainnav css into its own linked css file and that gets that out of the way, making troubleshooting a bit less of a nightmare.
    Also you are mixing fixed width with percenatge width. I don't have a lot of experience with that but it's not as easy as using all percentages or all fixed width. Obviously in this case you need the percentages as it's a responsive construction so why are you fixiing the left navigation and the right sidebar.
    It would be better to set those as percentages and float all the <divs> left in my opinion.

  • Footer to be fixed at the bottom of the page

    Hi,
    I have a requirement to fix the footer at the bottom of the page for various Zoom level, but at present my footer when i zoomout it moves up and leaves an empty gap at the bottom of the page.
    My footer is designed using panelBorderLayout

    Bump
    Still having this issue and haven't been able to find a way around it, any help would be appreciated.

  • My Iphone 5 home button  keeps pressing itself but stops if put pressure on the bottom of the screen on each side of the home button, i have noticed that there is a screw missing on the right side of the lightning port could this be the issue?

    My Iphone 5 home button  keeps pressing itself but stops if put pressure on the bottom of the screen on each side of the home button, i have noticed that there is a screw missing on the right side of the lightning port could this be the issue??

    If you are still under warranty, contact Apple to get it serviced. You can also visit an Apple Store or Authorized Apple Service Provider to get it looked at.
    iPhone - Contact Support - Apple Support

  • Footer at the bottom of the last page

    Hello,
    My template BI / Publisher is a page, but when it is executed it may be several pages. I want the footer that appears on the last page, that it's ok, but, and at the bottom of the last page.
    Have you any idea?
    Thanks.

    With the tag :
    Avant le truc.
    +<?start@last-page-first:body?> <?end body?>+
    Après le truc.
    I have the error :
    Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: D:\Documents and Settings\bPitault\Bureau\Reporting\SWM_SPE_OM_106\DATA_INT_20080922.xml
    FOProcessor setLocale: en-us
    java.lang.NullPointerException
    +     at oracle.apps.xdo.template.fo.area.PageNumber.formatString(PageNumber.java:104)+
    +     at oracle.apps.xdo.template.fo.IDManager.registerId(IDManager.java:44)+
    +     at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageJoinSeq(AreaTree.java:1106)+
    +     at oracle.apps.xdo.template.fo.area.AreaTree.incrementJoinSequenceIndex(AreaTree.java:219)+
    +     at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageDocument(AreaTree.java:1089)+
    +     at oracle.apps.xdo.template.fo.area.AreaTree.forceOutput(AreaTree.java:471)+
    +     at oracle.apps.xdo.template.fo.elements.FORoot.end(FORoot.java:58)+
    +     at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:386)+
    +     at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)+
    +     at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)+
    +     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)+
    +     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)+
    +     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)+
    +     at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:279)+
    +     at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1022)+
    +     at RTF2PDF.runRTFto(RTF2PDF.java:626)+
    +     at RTF2PDF.runXDO(RTF2PDF.java:460)+
    +     at RTF2PDF.main(RTF2PDF.java:251)+

  • I am trying to connect to apple support and it keeps asking me to put in the SN of my MAC and when i do it says that the SN is invalid I am putting in the SN from under about this mac and it is the same as the one one the bottom of the MAC any ideas ?

    I am trying to connect to apple support and it keeps asking me to put in the SN of my MAC and when i do it says that the SN is invalid I am putting in the SN from about this mac and it is the same as the one on the bottom of the MAC any ideas ?

    Did you purchase this product direct from Apple online, in an Apple Store, or through a third-party authorized reseller? Or did you buy it from an original owner whose Applecare plan was supposed to be transitioned to a new owner, by them?
    Do you have an original shipping carton the unit arrived in?
    If the product was a retail 'open carton' purchase and no
    back-track is possible, contact the reseller.
    And if the computer had seen a major service with logic
    board replaced, etc, it may have other issues with serial
    number vs one they may have assigned it. Usually a
    new logic board may have the SN flashed or if a unit
    was determined to be a reman, a new # assigned. But
    that would appear in System Profiler, if officially reman.
    If you registered a product anywhere with Apple, it would show on a web page along with its serial numbers, going back several years, at this page after you log in there.
    https://getsupport.apple.com/GetproductgroupList.action
    A blue text with triangle See all products and services opens an Apple ID
    sign-in window, then the page changes to show your items & info about them.
    If you run the serial number through online Lookup, what appears?
    http://www.powerbookmedic.com/identify-mac-serial.php
    Not sure if this helps, 'your product' should appear - if registered.
    Good luck & happy computing!

  • I keep noticing tabs for optical express, voda phone and others opening at the bottom of the screen when I haven't been to their site. How can I block them?

    When I am on the net, I keep noticing websites which have opened a tab at the bottom of the screen, vodaphone, optical express etc advertising their wares, How can I block them?
    == This happened ==
    Every time Firefox opened

    Do a malware check with a few malware scan programs.
    You need to use all programs because each detects different malware.
    http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    http://www.superantispyware.com/ - SuperAntispyware
    http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Div does not touch the bottom of the browser?

    Hey guys
    Please have a look at this website thats i busy working on www.flyingantserver.co.za . The problem im having with it is that the div is not touching the bottom of the browser. Im not sure why, but i think the problem might be in my css, Please could someone help me spot the problem thanks.
    Yours
    Ashveer

    Hi Mahendra
    I just had a look at it on an older PC with IE6 and its all off. Now I know most of the methods I have used are modern but how can I satisfy both versions of IE by achieving the same result.
    Yours
    Ashveer

  • My Iphone4S started downloading random things after I installed IOS 6.  I cant leave it on 3G Cellular Data ON or else it keeps downloading data. I turned off the Itunes Sync on the bottom of the General/Cellular page but it still is downloading things.

    How do i determine what apps are still running after shutting down the obvious ones at the bottom of the screen after pressing the home button twice and deleting all the things running? thanks!!Darren
    [email protected]

    Looks like the reset actually solved the issue. I posted the question soon after having done it, and the signal was still bad, but that was probably due to the place I was in. I've tested it for a whole day, and now signal strength is indeed like it was before upgrading to IOS 6.
    I also called Apple support, and they confirmed is a known bug, and a full phone reset solves it.

  • Page doesn't flush to the bottom of the screen, despite the lack of content on the page

    On the home page of my website, the content doesn't fill the whole screen, therefore the footer isn't flushed to the bottom of the screen. Is there a way for the footer to automatically flush to the bottom for any resolution? Here is a link to my page so you can  see the example:
    www.ees-energy.com
    or a better example at
    www.ees-energy.com/downloads.html
    Thank you,
    Obaid

    Hello
    This is where it gets tricky for me!
    I have never used a sticky footer - I just don't like the idea and it has always seemed a bit over complicated to me.
    I did have a go at applying it to your page and got it to work without too much difficulty but, adding an effect like this to an established page is tricky because it's hard to see how different components interact with each other.
    The basic advice from the sticky footer site is to use this as fundamental structure to the page:
    <div id="wrap">
        <div id="main" class="clearfix">
        </div>
    </div>
    <div id="footer">
    </div>
    If you want to go this way then I would suggest starting from the beginning with that HTML and adding your content to it.   Notice that the footer is outside the wrapper and your content would need to go in the #main div.  They have page giving instructions on the site and a wedge of CSS that you can just cut and paste into your style sheet.
    You have chosen to use a liquid layout (which is a part of the problem with width that you have asked about in your other post).  I agree that a liquid layout is a neat idea but again, I don't like it so much because it's over complicated..  For instance, your page doesn't look so good in a wide monitor.
    One other way to get your footer further down the page would be to add some content to your sidebar.  How about a mission statement or a green quote of some kind or a pull quote from your text?
    Sorry I can't be of any further help with the sticky footer thing.
    Martin

Maybe you are looking for