Jump to content

svanigiorgi

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by svanigiorgi

  1. Hello guys,

     

    I want footer to always stay at bottom of browser, how do i do that in css ?

     

    if you have main div, create another div with class footer (inside main div). give to main div position:relative;

    after, give to footer div position:absolute; bottom:0;

     

    something like this

     

    <html>
    <body>
    <div style="width:800px; height:800px; position:relative; background:#ccc;">
    <div style="width:800px; height:50px; position:absolute; bottom:0; background:#000;">sss</div>
    </div>
    </body>
    </html>

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.