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.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    7
    Member #
    33999
    Hi,

    I just made a site (www.directsteelllc.com) and I cannot figure out how to fix the gap between the white content and the footer. It appears in firefox on a pc but it's normal on my mac (also in firefox). IE also changes it a bit. How do I fix this issue?

    Thanks in advance! (and sorry if my code is sloppy.. I've never formally learned html/css)

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    It's your absolute positioning, and it's not the platform (it just appears to be).

    The way to fix it is to get rid of the absolute positioning. The downside is that on short pages and at high resolutions, your footer won't always be at the exact bottom of the page. So you're going to have to make a decision.
    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)

  4. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    7
    Member #
    33999
    When I take off the absolute positioning, this occurs. Any other suggestions? Thanks!
    Attached Images Attached Images

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Ahhh. Now I see.

    Important rule of CSS...write it down, stick it to the side of your tower, print it on a cocktail napkin, whatever you need to do to remember it. Don't worry, though...almost no one understands this the first few times. You're allowed a few free passes if you forget this rule.

    WHEN YOU FLOAT, YOU MUST CLEAR.

    Floats need to be cleared because they're designed to have content flow around them without large gaps and things like that. Any element containing a float will not take the height of the float into account as a result.

    So, immediately after your #content div, put the following. This isn't the best way to do this, but it will work and show you how to solve your problem.
    Code:
    <div style="clear:  both;"></div>
    Once you've done that, remove your absolute positioning and see what happens.
    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
    Nov 2012
    Posts
    7
    Member #
    33999
    Thank you so much for helping me troubleshoot this. I added the code you suggested and deleted the absolute positing but the footer is still awkwardly in the middle of the page. Any chance you have another idea?

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    I don't see the changes on my end. Those should have worked if applied correctly.
    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)

  8. #7
    Junior Member
    Join Date
    Nov 2012
    Posts
    7
    Member #
    33999
    i didn't re upload it. i can if you'd like

  9. #8
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Yes, please and thank you.
    AlphaMare likes this.
    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)

  10. #9
    Junior Member
    Join Date
    Nov 2012
    Posts
    7
    Member #
    33999
    Sorry I didn't have time to upload it until now. I changed the code only for the About Us page.

  11. #10
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Ahhh. I see why. It's because you have heights defined on the testimonials and content divs. Your content goes beyond the height of those divs, so it's creating that effect. Take the heights off.
    runbikeswim03 likes this.
    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)


Page 1 of 2 1 2 LastLast

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 09:00 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com