My footer is not aligning properly! can someone help please

Discussion in 'HTML & Website Design' started by Michelle., Feb 2, 2010.

  1. Bogdanirov

    Bogdanirov Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try to remove the footer div from the div ID #rightcontent and put it in the same div with the #leftcontent and #rightcontent (more exactly, #contentwrap). It should work! :)
     
    Bogdanirov, Feb 2, 2010 IP
  2. Michelle.

    Michelle. Peon

    Messages:
    515
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ....

    this is what I have on the index

    <div id="footer">
    <p><b>&copy; 2010-2010 blahblah.com</b> - keyword, keyword, keyword </p>
    <p><span class="text1">We take your privacy very seriously. Our entire privacy policy is </span><a href="/privacy.html" target="_blank"><span class="text1">here.</span></a></p




    ----------------

    For CSS it is

    #footer
    {
    PADDING-RIGHT: 0px;
    BACKGROUND-POSITION: left top;
    PADDING-LEFT: 0px;
    FONT-SIZE: 0.85em;
    FLOAT: left;
    BACKGROUND-IMAGE: url(../images/content-bottom.gif);
    PADDING-BOTTOM: 0px;
    MARGIN: 0px;
    WIDTH: 911px;
    COLOR: #666666;
    PADDING-TOP: 25px;
    BACKGROUND-REPEAT: no-repeat;
    HEIGHT: 60px;
    BACKGROUND-COLOR: #ffffff;
    TEXT-ALIGN: center
    }
    #footer P
    {
    PADDING-LEFT: 0px;
    FONT-SIZE: 11px;
    MARGIN: 0px;
    COLOR: #1a4773;
    }
    #footer A
    {
    FONT-WEIGHT: bold;
    FONT-SIZE: 1em;
    COLOR: #015398;
    TEXT-DECORATION: none
    }
     
    Last edited: Feb 2, 2010
    Michelle., Feb 2, 2010 IP
  3. Michelle.

    Michelle. Peon

    Messages:
    515
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    which bit do I change? not very clued up on CSS
     
    Michelle., Feb 2, 2010 IP
  4. Bogdanirov

    Bogdanirov Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This has nothing to do with CSS! Just move the:
    <div id="footer">
    <p><b>&copy; 2010-2010 blahblah.com</b> - keyword, keyword, keyword </p>
    <p><span class="text1">We take your privacy very seriously. Our entire privacy policy is </span><a href="/privacy.html" target="_blank"><span class="text1">here.</span></a></p bla bla bla...
    Code (markup):
    At the bottom of the page (index.php/.html w/e) so that below your footer to be only two </div> tags, not three, as I guess you have now!
     
    Bogdanirov, Feb 2, 2010 IP
  5. Michelle.

    Michelle. Peon

    Messages:
    515
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    still isn't working :confused:
     
    Michelle., Feb 2, 2010 IP
  6. Bogdanirov

    Bogdanirov Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Please give me your index via PM or make it public, if this does not bother you!
     
    Bogdanirov, Feb 2, 2010 IP
  7. Michelle.

    Michelle. Peon

    Messages:
    515
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    sent you a PM!
     
    Michelle., Feb 2, 2010 IP
  8. Michelle.

    Michelle. Peon

    Messages:
    515
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Looks like I may have to stay up tonight trying to figure this out....
     
    Michelle., Feb 2, 2010 IP
  9. Michelle.

    Michelle. Peon

    Messages:
    515
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    can someone help me align the footer to the bottom of the page? I've spent hours trying to do this. I feel like crying. :(
     
    Michelle., Feb 2, 2010 IP
  10. neo1211

    neo1211 Active Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #11
    Looking from a glance, I cannot see too much wrong with your code..

    Have you tried running it through a CSS validator (ex: W3C?)
     
    neo1211, Feb 2, 2010 IP
  11. WebhostListin

    WebhostListin Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Your footer is inside #rightcontent, you have to move it out of it! Cut the footer div code and paste it just before </div></body></html>. I'm not 100% sure if that's the right place, just check before which closing div it should be added.

    Edit: Install the 'Web Developer' addon for firefox, it will help you a lot! And as neo1211 said, try to reduce the no. of errors in the W3C validator, there were quite a few when I ran your page through it! :)
     
    WebhostListin, Feb 2, 2010 IP
  12. Michelle.

    Michelle. Peon

    Messages:
    515
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thank you so much, you rock!!! :D:D I will go to bed happy now... at least I can now start working on my site and don't have to worry about the blooming footer!.... and thanks for the tip about the W3C validator

    neo1211, I shall do that! thank you. :)

    edit I know where I went wrong, couldn't see it before but I didn't close the div tag so it ended as <div> instead of </div>
     
    Michelle., Feb 2, 2010 IP
  13. Michelle.

    Michelle. Peon

    Messages:
    515
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    sorry one more thing... now my two links are not showing (at the bottom right) :confused:
     
    Michelle., Feb 2, 2010 IP
  14. diggathedog

    diggathedog Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Can't see any links defined for the bottom of your page in your code - you've got two in the body, one in the footer ... have you maybe deleted them?
     
    diggathedog, Feb 3, 2010 IP