Quantcast
Channel: CSSタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8591

footerのデザイン

$
0
0

position absollute VS ブロック要素

解説 footerを作るとき、必ずしも「position absolute」を使用する必要はありません。2番の場合はposition absoluteは使用しないほうが良いでしょう。

1.footerにposition absoluteを使用するとき
メインコンテンツの量が デフォルトのブラウザ画面の高さ > コンテンツ量 な時

2.footerにposition absoluteを使用しないとき
メインコンテンツの量が デフォルトのブラウザの高さ < コンテンツの量 な時


Viewing all articles
Browse latest Browse all 8591


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>