Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Sticky Footer

  1. #1
    Banned
    Join Date
    Oct 2008
    Posts
    136
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Sticky Footer

    Hello, I am currently having a problem, the footer of the page wont stick to the bottom of the screen.

    Picture:



    Here is the html:

    PHP Code:
    <div class="promo-link">
        <
    ul>

            <
    li class="link-microsoft"><a href="http://www.microsoft.com/">Microsoft</a></li>

            <
    li class="link-redhat"><a href="http://www.redhat.com/">Redhat</a></li>
            <
    li class="link-dell"><a href="http://www.dell.com/">Dell</a></li>

            <
    li class="link-cisco"><a href="http://www.cisco.com/">Cisco</a></li>
            <
    li class="link-hp"><a href="http://www.hp.com/">HP</a></li>

            <
    li class="link-amd"><a href="http://www.amd.com/">AMD</a></li>
        </
    ul>

    </
    div>
    <!-- 
    Banners end -->
    <
    div class="hold-footer">
        <
    div id="footer">
        
        <
    ul class="menu">
    <
    li class="item183"><a href="******"><span>Home</span></a></li>
    <
    li class="item201"><a href="******"><span>Hosting</span></a></li>
    <
    li class="item189"><a href="******"><span>Solutions</span></a></li>
    <
    li class="item187"><a href="******"><span>Support</span></a></li>
    <
    li class="item188"><a href="******"><span>Help</span></a></li>
    <
    li class="item200"><a href="about.php"><span>About</span></a></li>
    <
    li class="active item184"><a href="******"><span>Contact</span></a></li>
    </
    ul>
            <
    p>Copyright &copy2009 by <strong>*********</strong>. All rights reserved.</p>

        </
    div>
    </
    div
    CSS:

    PHP Code:
    .promo-link{
        
    width:1002px;
        
    overflow:hidden;
        
    margin:0 auto;
        }
    .
    hold-footer{
        
    border-top:1px solid #a7b2b9;
        
    }
    #footer{
        
    width:978px;
        
    overflow:hidden;
        
    margin:0 auto;
        
    padding:27px 3px 27px 21px;
        } 
    Please add me on MSN: Sith717@hotmail.com

    I need the footer to stick to the bottom of the screen.

    Like this:

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello sith717,
    Have a look at this and see if it does what you want - http://nopeople.com/CSS/full-height-layout/index.html
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Banned
    Join Date
    Oct 2008
    Posts
    136
    Thanks
    4
    Thanked 0 Times in 0 Posts
    It does, now what is the code to make it so its works?

    Css and html codes I need to add.
    Last edited by sith717; 05-06-2009 at 06:48 PM.

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    View the source to see how it's done.
    View Source should be on your browser toolbar somewhere.

    You could also File/Save As to save the whole webpage.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #5
    Banned
    Join Date
    Oct 2008
    Posts
    136
    Thanks
    4
    Thanked 0 Times in 0 Posts
    I did, but do not know what to add. Like can you give me the css to add to my
    PHP Code:
    .promo-link
        
    width:1002px
        
    overflow:hidden
        
    margin:0 auto
        } 
    .
    hold-footer
        
    border-top:1px solid #a7b2b9; 
        

    #footer{ 
        
    width:978px
        
    overflow:hidden
        
    margin:0 auto
        
    padding:27px 3px 27px 21px
        } 
    And what to add to my HTML file.

  • #6
    Regular Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    455
    Thanks
    19
    Thanked 15 Times in 15 Posts
    Hint: Pay particular the heights and the negative margin line in the NoPeople CSS. That should point you in the right direction.
    Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •