Getting a footer

I'm trying to make the footer below using CSS, a sticky footer:

.wrapper {
  margin: 0 auto;
  padding: 0 0 0 0;
  width: 100%;
  text-align: left;
  background: #F5F5FF;
}

.page .footer {
  left: 0;
  width: 100%;
  min-width: 300px;
  position: fixed;
  margin-top: -150px;
}

.tfoot {
  background: #3E5C92;
  color: #E0E0F6;
}

.smallfont {
  font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}

And here is the HTML code for the thing:

<div class="wrapper">My stuff</div>
<div class="footer">
<div class="tfoot" align="left" style="padding:6px">
<div class="smallfont" style="float:right">
<a href="?app=about">About Extranet</a>&nbsp;<a href="?app=changelog">Changelog</a>&nbsp;</div>
<div style="color:white">
<small>Copyright &copy; 2009 Radon Systems&nbsp;|&nbsp;Shamil Nunhuck&nbsp;|&nbsp;<?php echo($product.'&nbsp;|&nbsp;'.$version.'&nbsp;|&nbsp;'.$build); ?>
</div></div></small></div>

But this does not stick to the bottom. What is wrong with him?

+3
source share
3 answers

If you want for example .footer to keep to the lower limit, try the following:

.footer { position:fixed; bottom:0; width:100%; height:110px;}

Of course, I made the width and height so that they changed as needed.

Hope this helps!

+4
source

Try this method (its only one that I found works consistently):

http://www.cssstickyfooter.com/

+7
source

: set.

Dup: HTML

+1

Source: https://habr.com/ru/post/1709958/


All Articles