Giter VIP home page Giter VIP logo

Comments (6)

rarestoma avatar rarestoma commented on August 28, 2024 2

Hello,

Sorry for the late response.

Please do the following changes:
In the css files add these lines:
.main-content{
min-height:100vh;
}
.footer{
position: absolute;
width: 95%;
bottom: 0;
height: 0%;
}

Please let me know if I can help you with anything else.

All the best,
Rares

from argon-dashboard.

mudenho avatar mudenho commented on August 28, 2024 2

.main-content{ min-height:100vh; } .footer{ position: absolute; width: 95%; bottom: 10px; height: 0; }
Add padding to the dive before the footer
padding-bottom: 20px

from argon-dashboard.

dan-whitehouse avatar dan-whitehouse commented on August 28, 2024 1

The only thing I'd suggest differently is setting the width to 97%, it seems to line up with the end of the container. Also, I used .pb-4 on the div before my footer.

<style>
    .main-content{ min-height:100vh; }
    .footer{ position: absolute; width: 97%; bottom: 10px; height: 0; }
</style>


<div class="container-fluid mt--6">
    <div class="row pb-4"></div>
    <footer class="footer"></footer>
</div>

from argon-dashboard.

bartek-dec avatar bartek-dec commented on August 28, 2024

Hello
The above solution doesn't work when the page is full of content. In that case, the footer covers content. Is there a way to keep footer at the bottom even if the site content does not fill up the available space (as asked by attilatoth86) and keep footer below the content when the page is filled up?

Screenshot

from argon-dashboard.

hridoy100 avatar hridoy100 commented on August 28, 2024

This code worked for me...

<footer id="footer-main" 
    style="clear: both;
    position: relative;
    margin-top: -50px;">
</footer>

StackOverflow Reference

from argon-dashboard.

attilatoth86 avatar attilatoth86 commented on August 28, 2024

thank you all, it worked.

from argon-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.