sound more natural in the clearfix description
This commit is contained in:
4
dist/6f87738ba5ca74ac9104fc97c6eee446.html
vendored
4
dist/6f87738ba5ca74ac9104fc97c6eee446.html
vendored
@ -51,7 +51,7 @@
|
||||
<div class="snippet">
|
||||
<h3 id="clearfix">Clearfix</h3>
|
||||
<p>Ensures that an element self-clears its children.</p>
|
||||
<h6 data-type="Note: This is useful only if you are still using float to build layouts. Please consider to use a modern approach with flexbox layout or grid layout.">Note: This is useful only if you are still using float to build layouts. Please consider to use a modern approach with flexbox layout or grid layout.</h6>
|
||||
<h6 data-type="Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.">Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.</h6>
|
||||
<h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><div class="clearfix">
|
||||
<div class="floated">float a</div>
|
||||
<div class="floated">float b</div>
|
||||
@ -59,7 +59,7 @@
|
||||
</div>
|
||||
</code></pre>
|
||||
<h4 data-type="CSS">CSS</h4><pre><code class="lang-css">.clearfix::after {
|
||||
content: '';
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
<div class="snippet">
|
||||
<h3 id="clearfix">Clearfix</h3>
|
||||
<p>Ensures that an element self-clears its children.</p>
|
||||
<h6 data-type="Note: This is useful only if you are still using float to build layouts. Please consider to use a modern approach with flexbox layout or grid layout.">Note: This is useful only if you are still using float to build layouts. Please consider to use a modern approach with flexbox layout or grid layout.</h6>
|
||||
<h6 data-type="Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.">Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.</h6>
|
||||
<h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><div class="clearfix">
|
||||
<div class="floated">float a</div>
|
||||
<div class="floated">float b</div>
|
||||
@ -59,7 +59,7 @@
|
||||
</div>
|
||||
</code></pre>
|
||||
<h4 data-type="CSS">CSS</h4><pre><code class="lang-css">.clearfix::after {
|
||||
content: '';
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
Ensures that an element self-clears its children.
|
||||
|
||||
###### Note: This is useful only if you are still using float to build layouts. Please consider to use a modern approach with flexbox layout or grid layout.
|
||||
###### Note: This is only useful if you are still using float to build layouts. Please consider using a modern approach with flexbox layout or grid layout.
|
||||
|
||||
#### HTML
|
||||
|
||||
@ -18,7 +18,7 @@ Ensures that an element self-clears its children.
|
||||
|
||||
```css
|
||||
.clearfix::after {
|
||||
content: '';
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
@ -55,7 +55,7 @@ Ensures that an element self-clears its children.
|
||||
1. `.clearfix::after` defines a pseudo element.
|
||||
2. `content: ''` allows the pseudo element to affect layout.
|
||||
3. `clear: both` indicates that the left, right or both sides of the element cannot be adjacent
|
||||
to earlier floated elements within the same block formatting context.
|
||||
to earlier floated elements within the same block formatting context.
|
||||
|
||||
#### Browser support
|
||||
|
||||
|
||||
Reference in New Issue
Block a user