clearfix css
.clearfix {
content: "";
clear: both;
display: table;
}
clearfix css
.clearfix {
content: "";
clear: both;
display: table;
}
what does clearfix for floats do in css
/* A clearfix is a way for an element
to clear its child elements automatically without any additional markup.
The clearfix property is generally used in float layouts where elements
are floated to be stacked horizontally. ... The clearfix property allows
a container to wrap its floated children.
*/
.clearfix {
overflow: auto;
}
css clearfix for floats with display table and clear both
.group:after {
content: "";
display: table;
clear: both;
}
<div class="group">
<div class="is-floated"></div>
<div class="is-floated"></div>
<div class="is-floated"></div>
</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us