clearfixの即コピメモ

とてもいまさらのネタですみません。自分用です。

■sectionのみ(置換で他のものにも1秒ですり返られる)

.section:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.section {
display: inline-table;
min-height: 1%;
}
/* Hides from IE-mac \*/
* html .section { height: 1%; }

.section { display: block; }
/* End hide from IE-mac */


■sectionとpagetop
.section:after,
.pagetop:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.section,
.pagetop {
display: inline-table;
min-height: 1%;
}
/* Hides from IE-mac \*/
* html .section,
* html .pagetop { height: 1%; }

.section,
.pagetop { display: block; }
/* End hide from IE-mac */

Comments:0

Comment Form

Trackbacks:0

TrackBack URL for this entry
http://www.otogawa.com/cms/mt-tb.cgi/229
Listed below are links to weblogs that reference
clearfixの即コピメモ from px*blog