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 6 of 6
  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    3
    Member #
    33053
    I'm trying to redo my entire site in CSS and it is presenting some difficulties.

    I tried the push, clear:both, min-height:100% but the footer will not stay at the bottom!

    The site is http://sixseven.org/visions/index.php?action=about

    As you can see, the footer is stuck on the bottom of the screen but not when I scroll down to view more content. I'm using a center wrapper and the format in most help guides about this but I feel like I'm missing something. Any help is appreciated, will check this space when I get off work. Thanks!

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Add this to your CSS:
    Code:
    .wrapper::after{
    clear:both;
    content:"";
    display:block;
    height:0;
    width:0;
    }
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member
    Join Date
    Sep 2012
    Posts
    3
    Member #
    33053
    Quote Originally Posted by Ronald Roe, post: 241796
    Add this to your CSS:
    Code:
    .wrapper::after{
    clear:both;
    content:"";
    display:block;
    height:0;
    width:0;
    }
    Hi, thanks for replying! I'm confused as to where to put this new class. Is it for my footer and do I then put my footer inside the wrapper div? I tried this again and got this http://sixseven.org/visions/index.php?action=about

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    The float's not the problem (although the way you're clearing isn't helping).

    You're making a mistake lots of people make i.e. you're using absolute positioning where it's not intended. The only time to use absolute positioning is when you want to put an element somewhere that it wouldn't normally go based on your code and you need it to break your document flow.

    Take the absolute positioning off of your #content div (and anywhere else you might have it that you don't need it).
    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)

  6. #5
    Junior Member
    Join Date
    Sep 2012
    Posts
    3
    Member #
    33053
    I took the absolute positioning off and it made a big mess. But I did some workarounds, because my original bg image was actually an image so I made it a fixed background but the content would go all the way up so I made an invisible img to push the content down and now the footer follows the content! Not sure if what I said makes sense but it works now, thanks!

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    No problem.

    Absolute positioning, if used incorrectly, will make a bigger mess of things than what you described. Use with caution.
    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 04:57 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com