From 4db5fb7c970d4028d40e3d683ef64a1e74ac14bb Mon Sep 17 00:00:00 2001 From: Denis Monnerat Date: Tue, 17 Dec 2024 09:09:27 +0100 Subject: [PATCH] exemple de media query --- R1.02/tp/tp4/correction/style.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/R1.02/tp/tp4/correction/style.css b/R1.02/tp/tp4/correction/style.css index fc4b7b1..8d13768 100644 --- a/R1.02/tp/tp4/correction/style.css +++ b/R1.02/tp/tp4/correction/style.css @@ -70,6 +70,7 @@ footer a,nav ul a em{ font-weight:bold; } + .informaticien article { flex:1 40%; @@ -78,14 +79,25 @@ em{ margin : 5px; text-align:left; } + .informaticien article img { - float :right; width : 125px; height:125px; padding:10px; box-shadow: 10px 10px 5px #656565; } + + +@media (min-width:900px) +{ + .informaticien article img + { + float :right; + } + +} + .date { font-size : 1rem;