Search code examples
asp.netcsssticky-footer

CSS. Placing footer at bottom of the webpage (not in the bottom of screen) in ASP Pages


I have read a lot of approaches regarding placement of the footer in a webpage with CSS. Between others i found solutions, within SO too. The problem is (i think) that most of them, do not apply in asp pages.

So the question is how can i place the footer with pure CSS in Asp pages?

Before you post your answer, you have to take in mind the following.

  1. I use a master page (If this one has anything to do)
  2. The webpage contains the form element, which i believe destroys the placing of the footer in the bottom of the webpage.

<form name="aspnetForm" method="post" action="Default.aspx" id="aspnetForm">

So, you may start down-voting, but i think a different approach exists regarding footer placement with CSS in Asp.Net pages


Solution

  • There is not, ASP.NET is still rendering plain old HTML in the end. Add a CSS template to your masterpage just like you would create a template in an HTML site.

    If you are having trouble implementing a certain CSS design, you can post those details with code and I am sure someone can help.