From 3e4c95bdff87922fa0b20cfa93ce4e982a22e35f Mon Sep 17 00:00:00 2001 From: KEZEL BENOIT p1907091 Date: Thu, 12 Dec 2019 11:10:56 +0100 Subject: [PATCH] added flex container index --- Assets/css.css | 28 ++++++++++++++++++++++++++++ index.html | 19 +++++++++++-------- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/Assets/css.css b/Assets/css.css index 19ef578..a51b91e 100644 --- a/Assets/css.css +++ b/Assets/css.css @@ -168,3 +168,31 @@ div#slider figure { /*============================================*/ +.flex-container { + display: flex; + flex-wrap: wrap; + justify-content: center; + align-items: stretch; + background-color: rgb(187, 187, 187); +} + +.flex-container>div { + box-shadow: 0.3vw 0.3vw 2px grey; + width: 20%; + margin: 1vw; + text-align: center; + font-size: 30px; +} + +.flex-container>div>img{ + width: 85%; +} + +.flex-container>div>p{ + font-size: 0px; +} + +.flex-container>div:hover p{ + font-size: 40px; + transition-duration: 0.2s; +} \ No newline at end of file diff --git a/index.html b/index.html index 65cea39..b5fc444 100644 --- a/index.html +++ b/index.html @@ -32,14 +32,17 @@ - -
-
Robot Nao
-
Robot Valkyrie
-
Robot Terminator
-
Robot x
-
Robot y
-
+ +
+
+

Nao

+

Valkyrie

+

Soldat

+

R2D2

+

Pepper

+

Terminator

+
+