Bonjour,
Je travaille sur le développement d’un site web et je rencontre un petit problème de mise en page avec le framework TailwindCSS. J’affiche des images sur la page d’accueil de mon site et j’aimerais bien que leur taille dépende de la taille de l’écran…
Voici mon code HTML :
<!DOCTYPE html>
<html>
<head>
<title>Christian Goux</title>
<script src="https://cdn.tailwindcss.com"></script>
<meta charset = "utf-8">
</head>
<body class = "">
<header class = "bg-yellow-400">
<div class = "grid justify-items-center grid-cols-1">
<t1 class = "text-5xl text-red-600 m-10" style = "font-family : cursive;">Bienvenue !</t1>
</div>
</header>
<section class = "flex flex-col bg-yellow-200 p-10 min-h-screen">
<div class = "basis-1/2">
<div class = "grid justify-items-center grid-cols-3">
<div class = "grid justify-items-center grid-cols-1">
<img src = "https://bdi.dlpdomain.com/album/9782505009184-couv.jpg" class = "w-3/4">
</div>
<div class = "grid justify-items-center grid-cols-1">
<img src = "https://i.pinimg.com/originals/31/2b/66/312b66b0c568d4923fd26a0c80153499.png" class = "w-3/4">
</div>
<div class = "grid justify-items-center grid-cols-1" >
<img src = "https://i.pinimg.com/originals/d5/7b/00/d57b006e00e8d0c0e11332f50e5a27e3.jpg" class = "w-3/4">
</div>
</div>
</div>
<div class = "grid justify-items-center grid-cols-1">
<t1 class = "text-5xl text-red-600 m-8" style = "font-family : cursive;">Découvrez l'oeuvre de Christian Goux !</t1>
<a href = "#"><button class = "bg-yellow-500 hover:bg-yellow-500 text-red-600 font-bold py-2 px-4 border-b-4 border-yellow-800 hover:border-yellow-800 rounded-full m-8 text-2xl hover:px-5 hover:py-3" style = "font-family : cursive;">Accéder à la collection complète</button></a>
<div class = "basis-1/2">
<div class = "grid justify-items-center grid-cols-3">
<div class = "grid justify-items-center grid-cols-1">
<img src = "https://bdi.dlpdomain.com/album/9782505009184-couv.jpg" class = "w-3/4">
</div>
<div class = "grid justify-items-center grid-cols-1">
<img src = "https://i.pinimg.com/originals/31/2b/66/312b66b0c568d4923fd26a0c80153499.png" class = "w-3/4">
</div>
<div class = "grid justify-items-center grid-cols-1" >
<img src = "https://i.pinimg.com/originals/d5/7b/00/d57b006e00e8d0c0e11332f50e5a27e3.jpg" class = "w-3/4">
</div>
</div>
</div>
</section>
<footer class = "grid justify-items-center grid-cols-1 bg-yellow-600">
<p class = "text-lg text-white m-10">Ce site donne accès à une synthèse des ouvrages du brillant dessinateur Christian Goux. Profitez bien ! </p>
</footer>
</div>
</body>
</html>
Ma page s’affiche parfaitement quand le navigateur prend la moitié de l’écran, mais quand je passe en plein écran, seul les images du haut s’affichent…
Merci d’avance pour votre aide,
+0
-0