696G [ BLOG ]

Icon

footer下の隙間をどうにかする方法

footer下の隙間をどうにかする方法
cssメモ。これは使えるので是非覚えておきたい。

以下引用

* {
	margin: 0;
}
html, body {
	height: 100%;
}
.wrapper {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto -142px; /* the bottom margin is the negative value of the footer's height */
}
.footer, .push {
	height: 142px; /* .push must be the same height as .footer */
}

Category: memo, txt

Tagged: ,

Leave a Reply

Calendar

2010年9月
« 8月    
 12345
6789101112
13141516171819
20212223242526
27282930  

Archive

Category

Copyright© 696G, All rights reserved.

Grid Focus by Derek Punsalan 5thirtyone.com.