Search code examples
htmlcsssticky-footer

Sticky footer in asp.net not working


I am using sticky footer in my page with form tag it's working fine check demo below

http://jsfiddle.net/77v3J/

but when i use <form> tag then sticky footer not working please check fiddle link

http://jsfiddle.net/kn5kF/


Solution

  • Add this to your footer class.

    .footer {
        bottom: 0;
        position: absolute;
    }
    

    Find the WORKING DEMO.

    EDIT

    If you want to go without position absolute, then add a height of 100% to the <form>

    For Instance.

    <form method="post" action="abc.aspx" id="form1" style="height:100%;">

    Hope this helps Now.