Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

making a div stick at the bottom on container div show/hide toggle?

my main container div can be refreshed, so its content is being hide/shown. When my container div is hide, my footer shoots up.

the html structure looks like the following:

Note that i already tried this:

And it doesn't seem to work, the footer div will still shoot up when the container div is hidden.

Nor can i set a height on the container div because i want the content div height to stretch 100%.

Any ideas? Thanks in advance.

like image 344
David Avatar asked Jan 23 '23 03:01

David


1 Answers

Use this css:

#yourdiv {
   position:fixed;
   bottom:0;
}

This will make it stick to the bottom :)

like image 90
Tim Avatar answered Jan 30 '23 06:01

Tim