diff --git a/flex/01-flex-center/style.css b/flex/01-flex-center/style.css index e35feacd28d0..c187ab490cd9 100644 --- a/flex/01-flex-center/style.css +++ b/flex/01-flex-center/style.css @@ -3,6 +3,7 @@ border: 4px solid midnightblue; width: 400px; height: 300px; + display: flex; } .box { @@ -12,4 +13,5 @@ border: 6px solid maroon; width: 80px; height: 80px; -} \ No newline at end of file + margin: auto; +} diff --git a/flex/02-flex-header/style.css b/flex/02-flex-header/style.css index cb598c935480..d2b12114243e 100644 --- a/flex/02-flex-header/style.css +++ b/flex/02-flex-header/style.css @@ -1,6 +1,10 @@ .header { font-family: monospace; background: papayawhip; + padding: 8px; + display: flex; + justify-content: space-between; + align-items: center; } .logo { @@ -14,6 +18,10 @@ ul { /* this removes the dots on the list items*/ list-style-type: none; + margin: 0px; + padding: 0px; + display: flex; + gap: 8px; } a { @@ -22,4 +30,4 @@ a { padding: 8px; /* this removes the line under the links */ text-decoration: none; -} \ No newline at end of file +} diff --git a/flex/03-flex-header-2/index.html b/flex/03-flex-header-2/index.html index fa39648cda18..9af06b19ace8 100644 --- a/flex/03-flex-header-2/index.html +++ b/flex/03-flex-header-2/index.html @@ -12,15 +12,19 @@