Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
diff --git a/src/005-centering/example/example.css b/src/005-centering/example/example.css
index 4dba466..c31dfc3 100644
--- a/src/005-centering/example/example.css
+++ b/src/005-centering/example/example.css
@@ -3,3 +3,134 @@
* Version: 1
* By: xxx
*/
+
+.container{
+ background-color: rgb(232,232,232);
+ max-width: 1200px;
+ margin: auto;
+}
+
+.centered-text{
+ padding-top: 10px;
+ padding-bottom: 10px;
+ text-align: center;
+}
+
+.centered-box{
+ text-align: center;
+}
+
+.centered-box div{
+ background-color: rgb(211,211,211);
+ display: inline-block;
+ margin: 20px 5px;
+ max-width: 200px;
+ padding: 25px 25px;
+ text-align: left;
+}
+
+.centered-flexbox{
+ display:flex;
+ justify-content: center;
+}
+
+.centered-flexbox div{
+ background-color: rgb(211,211,211);
+ max-width: 200px;
+ margin: 5px 5px;
+ padding: 25px 25px;
+}
+
+
+.centered-line {
+ background-color: rgb(211,211,211);
+ display: inline-block;
+ height: 100px;
+ line-height: 100px;
+ margin-top: 20px;
+ padding-left:10px;
+ text-align: left;
+ vertical-align: middle;
+ width: 500px;
+}
+
+
+.centered-text,
+.center-within-parent,
+.flex-lines,
+.link-list,
+.vertically-center-within-parent,
+.vertical-line{
+ background-color: rgb(211, 211, 211);
+}
+
+
+.center-within-parent {
+ height: 200px;
+ margin-top: 20px;
+ position: relative;
+
+}
+
+.child,
+.child-vertically{
+ background-color: rgb(169,169,169);
+ color: rgb(255,255,255);
+}
+
+.child{
+ position: absolute;
+ top: 50%;
+ height: 100px;
+ margin-top: -50px;
+ width: 90%;
+ padding: 10px 10px;
+ margin-left: 20px;
+}
+
+.flex-lines{
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+}
+
+.flex-lines p{
+ padding: 70px 20px;
+}
+
+.link-list{
+ text-align: center;
+}
+
+.link-list div{
+ display: inline-block;
+ margin: 10px;
+
+}
+
+.vertical-line{
+ margin-top: 30px;
+ margin-bottom: 30px;
+ height: 200px;
+ width: 200px;
+}
+
+.vertical-line p{
+ padding: 55px 20px 30px 10px;
+}
+
+.vertically-center-within-parent{
+ margin-top: 40px;
+ position:relative;
+ height: 200px;
+ padding-top: 30px;
+}
+
+.child-vertically{
+ left: 50%;
+ padding: 10px 10px;
+ position: absolute;
+ top: 52%;
+ transform: translate(-50%,-57%);
+ width: 95%;
+}
\ No newline at end of file
diff --git a/src/005-centering/example/index.html b/src/005-centering/example/index.html
index b6d2e1e..3735ffb 100644
--- a/src/005-centering/example/index.html
+++ b/src/005-centering/example/index.html
@@ -30,13 +30,13 @@
-
+
-
This text is centered.
+
This text is centered.
-
+
@@ -44,7 +44,7 @@
This text is centered.
-
+
I'm an element that is block-like with my siblings and we're centered in a row. I'm an element that is
block-like with my siblings and we're centered in a row.
@@ -54,7 +54,7 @@
This text is centered.
I'm an element that is block-like with my siblings and we're centered in a row.
-
+
I'm an element that is block-like with my siblings and we're centered in a row.
I'm an element that is block-like with my siblings and we're centered in a row. I have more content in me
than my siblings do.
@@ -62,15 +62,15 @@
This text is centered.
I'm an element that is block-like with my siblings and we're centered in a row.
-
+
I'm a centered line.
-
+
I'm vertically centered multiple lines of text in a CSS-created table layout.
-
+
I'm vertically centered multiple lines of text in a flexbox container. Lorem ipsum dolor sit amet, pharetra
vitae corrupti eu amet in. Ut nibh ut tellus lacinia habitasse proin, arcu aliquet ut. Dis phasellus orci
pulvinar assumenda a ligula, egestas morbi sapien congue sollicitudin, quam tortor placerat at leo elit sed.
@@ -83,12 +83,12 @@
This text is centered.
elementum aliquam vitae.
-
-
I'm a block-level element with a fixed height, centered vertically within my parent.
+
+
I'm a block-level element with a fixed height, centered vertically within my parent.
-
-
I'm a block-level element with an unknown height, centered vertically within my parent. I'm a block-level
+
+
I'm a block-level element with an unknown height, centered vertically within my parent. I'm a block-level
element with an unknown height, centered vertically within my parent. I'm a block-level element with an
unknown height, centered vertically within my parent.