Bottom toolbar like Facebook

Discussion in 'PHP' started by LH-Danny, Nov 4, 2009.

  1. #1
    Hi,

    Is it possible to create a toolbar in php just like the one facebook has that moves on the screen as you scroll?

    Thanks.
     
    LH-Danny, Nov 4, 2009 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is not done with PHP. It's done with CSS and javascript
     
    JAY6390, Nov 4, 2009 IP
  3. ghyper.com

    ghyper.com Peon

    Messages:
    809
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    use wibiya.com
    its great. im also using it my site
     
    ghyper.com, Nov 4, 2009 IP
  4. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #4
    Here's the code I use for a very simple and functional fixed footer... No javascript required.

    HTML part...
    
    <div id="fixed-footer">
        <div id="footer-inner">
            <ul class="footer-navigation">
                <li><a href="">Footer Links</a></li>
             </ul>
        </div>
    </div>
    
    Code (markup):
    CSS PART:
    
    #fixed-footer {
        background:#eee;
        border-top:1px solid #ccc;
        position:absolute;
        bottom:0;
        width:100%;
        height:32px;
    }
    
     /* for moz/opera and others*/
    html>body #fixed-footer{position:fixed}
    
    #footer-inner {
        border-top:1px solid #fff;
        background:#eee;
        height: 31px;
    }
    
    #content {
        margin-bottom: 31px;
    }
    
    ul.footer-navigation,
    ul.footer-navigation * { margin:0;padding:0;}
    ul.footer-navigation {
        position:relative;
        font-size:1.1em;
        max-width:100%;
        height:2.5em;
    }
    ul.footer-navigation li {
        border-left:1px solid #fff;
        border-right:1px solid #ccc;
        cursor:pointer;
        float:left;
        text-align:center;
        list-style-type:none;
        font-weight:normal;
        padding-left:6px;
    }
    ul.footer-navigation li a {
        color:#333;
        text-decoration:none;
        display:block;
        float:left;
        padding:0 1em 0 24px;
        height:2.4em;
        line-height:2.5em;
    }
    ul.footer-navigation li:hover a,
    ul.footer-navigation li a:hover,
    ul.footer-navigation li a.selected,
    ul.footer-navigation li a:focus {color:#333; background:#fff;}
    
    Code (markup):
    You can really do whatever you want but this should get you going in the right direction.
     
    jestep, Nov 4, 2009 IP
  5. ghyper.com

    ghyper.com Peon

    Messages:
    809
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    can you it in action?
     
    ghyper.com, Nov 4, 2009 IP
  6. LH-Danny

    LH-Danny Member

    Messages:
    398
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #6
    Thanks jestep, it works great in Safari, Opera, Firefox and Chrome etc however in IE8 the toolbar just stays in the middle of the page.
     
    LH-Danny, Nov 4, 2009 IP
  7. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #7
    It's working fine in mine IE7 and IE8. Let me see if I missed some CSS somewhere.

    I did forget this for IE6 compatibility.

    
    #footer-inner {
    		margin-right:17px;
    }
    
    Code (markup):
    [​IMG]
     
    Last edited: Nov 4, 2009
    jestep, Nov 4, 2009 IP
  8. LH-Danny

    LH-Danny Member

    Messages:
    398
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #8
    I've added the extra for IE6, and it still seems to have the same problem.

    [​IMG]

    I've edited the content off the page with paint, but you can still see the grey bar near enough in the middle of the browser.
     
    LH-Danny, Nov 4, 2009 IP