メモ用サブブログ

子曰わく學びて時にこれを習う。

2014-02-20から1日間の記事一覧

ページの内容が短くてもウィンドウ下部にフッターを固定する方法

CSS

ページの内容が短い時に、フッターまで上のほうにあがってしまってみっともないことがある。それの回避方法。 html { position: relative; min-height: 100%; } #footer { position: absolute; bottom: 0; width: 100%; /* Set the fixed height of the foot…