The solution presented here is compatible in desktop devices as well as mobile devices.
You can download this @ github.com/wcadap
Technology Used:
- Visual Studio 2013
- ASP.NET MVC 5
- BootStrap 3.0/CSS
Scenario
How to do we solve this?
Let us create a simple css file called FooterBottom.css to handle the footer, body-content classes. I don't recommend editing the boostrap.css directly. Let's us overwrite some of the few properties. Save this in the Content folder.
FooterBottom.css
Note of the comments in the css that the padding-bottom of the body-content should be equal to the height of the footer. For the fix-headers menu, add the padding-top to 45px; in the body-content class (optional).
Apply the CSS to the _Layout.cshtml template.
- Include the FooterBottom.css at the header of the _Layout.cshtml.
- Wrap the body with <div id="wrapper">
That's it folks. Thanks!
3 comments
Great Article
ReplyMVC 5 Training
After all solutions I tried yours it stays at bottom but, when the content in the body is more and if we resize the window the content in the body is moving back to footer.
ReplyWow I just seen these comments and a reply, Thank you both for your help in these here posts because I needed to know how a family member and ex boyfriend were hacking my cashappsquare account in this Samsung Mobile Device weve found these here much needed info to see the truth about my
ReplyAccounts katswonderland.com.org my buissness address too & kat@gmail.com ita horrifieng t9 know that family & Ex boyfriend you love would hurt you like this Sighned @HURTINGSIBAD63