diff --git a/flex/flex-center/solution/solution.css b/flex/flex-center/solution/solution.css new file mode 100644 index 0000000..a9ab40e --- /dev/null +++ b/flex/flex-center/solution/solution.css @@ -0,0 +1,20 @@ +.container { + background: dodgerblue; + border: 4px solid midnightblue; + width: 400px; + height: 300px; + + /* look at this! */ + display: flex; + align-items: center; + justify-content: center; +} + +.box { + background: palevioletred; + font-weight: bold; + text-align: center; + border: 6px solid maroon; + width: 80px; + height: 80px; +} \ No newline at end of file diff --git a/flex/flex-center/solution/solution.html b/flex/flex-center/solution/solution.html new file mode 100644 index 0000000..d2121af --- /dev/null +++ b/flex/flex-center/solution/solution.html @@ -0,0 +1,15 @@ + + +
+ + + +