diff --git a/index.html b/index.html index 621a544c0..a2b1ae4d7 100644 --- a/index.html +++ b/index.html @@ -24,7 +24,7 @@ Clearfix Constant width to height ratio Evenly distributed children - Horizontal and vertical centering + Flexbox centering Truncate text
86.3% -⚠️ Requires prefixes for full support.
+⚠️ Requires prefixes for full support. + ⚠️ This is not a secure method to prevent users from copying content.
Horizontally and vertically centers a child element within a parent element using flexbox.
<div class="flexbox-centering">
+ <div class="child"></div>
+</div>
+
+ .flexbox-centering {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+ Centered content.
+display: flex enables flexbox.justify-content: center centers the child horizontally.align-items: center centers the child vertically.⚠️ Needs prefixes for full support.
+ + + +Gives text a gradient color.
@@ -747,54 +796,6 @@ in any specification.Horizontally and vertically centers a child element within a parent element.
-<div class="horizontal-and-vertical-centering">
- <div class="child"></div>
-</div>
-
- .horizontal-and-vertical-centering {
- display: flex;
- justify-content: center;
- align-items: center;
-}
-
- Centered content.
-display: flex enables flexbox.justify-content: center centers the child horizontally.align-items: center centers the child vertically.⚠️ Needs prefixes for full support.
- - - -Creates an animated underline effect when the text is hovered over.