Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    1
    Member #
    27170
    Could someone please tell me how this was done...
    Look at the fixed banner at the bottom of this page: http://www.eystudios.com/
    Content flows behind the fixed footer with only one scroll bar, just as seen in the site.
    Is fixed footer not the way to go?
    This is probably very simple but I have not been able to figure it out. HELP!

  2.  

  3. #2
    Senior Member LeenkzMike's Avatar
    Join Date
    Jan 2011
    Location
    Toe-Peek-ah, Kansas
    Posts
    608
    Member #
    26365
    Liked
    80 times
    I would like to know this too, it is much like the way certain things stick to the bottom of the browser window on Facebook. How do they do that?
    Peace, Mike
    WebHost1-For all your Hosting needs.
    Leenkz.Com-The web starts here! (Blatant use of tables)
    I realllllly need to feel useful, please "like" my signatures!!!! (Button is on the bottom right!)

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    OK - the fixedFooter div is positioned fixed (not absolute) and given a class (note the positioning tacking it to the bottom, and the z-index above the rest of the elements on the page):

    .fixedFooter {
    bottom: 0;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 99;
    }

    And the HTML Divs basically look like this:

    <div class="fixedFooter">
    <a href="whateverURL.com"><img src="imagename.png" alt="alternate Text" /></a>
    </div><!-- close fixedFooter -->

    <div id=PageWrapper>
    <div id=Header>
    <div id="topNav">
    (navigation menu here)
    </div><!--close topNav -->
    </div><!--close Header -->
    <div id="innerContainer">
    (....all the rest of the stuff on the page....)
    <!-- close innerContainer -->
    <!-- close pageWrapper -->

    Notice that everything on the page comes after the fixedFooter div in the HTML, so it stays stuck to the bottom of the page and "floating" at z-index:99 above the other page content, so the rest of the page seems to slide behind it. The main pageWrapper has to be styled to scroll and some other stuff, perhaps like this:
    #pageWrapper {
    background: url("images/imagename.jpg") repeat-y scroll center top transparent;
    margin: 0 auto;
    width: 980px;
    }

    The pageWrapper has to have a width that will be smaller than the fixedFooter so the "sliding behind" illusion will work. This is probably not all that is required, but this should get you started on the right track.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You don't actually have to put the fixed footer in before the rest of the HTML. It will work after the content is inserted as well. So you can put it at the bottom, before the </body> tag. That's what I usually do with it.

    Three things you'll also want to consider:

    1) Padding. You'll want some form of top padding for your fixed footer so that the text doesn't directly collide with your image.

    2) A background color. If you don't specify one, your text may overlap plain text in your footer and it will look weird.

    3) Bottom padding on your content div that it at least covers the height of your footer. Otherwise, your bottom content will get buried.

    Other than that, no thoughts.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:19 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com