diff --git a/flex/index.html b/flex/index.html index 45bf6a4..0276699 100644 --- a/flex/index.html +++ b/flex/index.html @@ -2,34 +2,33 @@ - Flex + Inline -

Display: Flex

-
+

Inline-flex

+
-

1

+

1

-

2

+

2

-

3

+

3

-

Display: Block

-
+
-

1

+

1

-

2

+

2

-

3

+

3

diff --git a/flex/style.css b/flex/style.css index a28c72e..aba5071 100644 --- a/flex/style.css +++ b/flex/style.css @@ -1,31 +1,24 @@ body { - margin: 0; - border: 0; - font-family: 'Roboto Mono', monospace; - } - - h1 { - font-size: 18px; - text-align: center; - } - - h2 { - font-size: 16px; - text-align: center; - } - - .container { - background-color: whitesmoke; - } - - .box { - background-color: dodgerblue; - height: 100px; - width: 100px; - border: 1px solid lightgrey; - } - - #flex { - display: flex; - } - \ No newline at end of file + margin: 0; + border: 0; + font-family: 'Roboto Mono', monospace; + text-align: center; +} + +h1 { + font-size: 18px; + text-align: center; +} + +.container { + width: 150px; + border: 1px solid grey; + display: inline-flex; +} + +.box { + background-color: dodgerblue; + height: 75px; + width: 75px; + border: 1px solid turquoise; +}