-
-
Save Takazudo/969835 to your computer and use it in GitHub Desktop.
the clearfix I'm currently using
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* kotaroclearfix */ | |
.clearfix { *zoom: 1; } | |
.clearfix:after { content: ''; display: block; clear : both; height: 0; } | |
@media print { .clearfix:after { height: 1px; margin-bottom: -1px; visibility: hidden; } } |
お、ありがとございます!
なんかdisplay:tableにすると、幅がshrink-to-fitになってしまいそうなのですがちと今度試してみます〜
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
display: table;
にするとheight
プロパティが不要になって短くなるとか何とか最近どっかで見ました。