CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

Problème marge CSS

cybevil
cybevil
Niveau 27
24 mars 2020 à 19:36:19

Bonjour, cela fait plusieurs heures que je m'arrache les cheveux, pas moyen de savoir d'où provient ce petit espace à droite de ma 3ème colonne et pourquoi elle n'est pas alignée à droite comme celle de gauche.

Si quelqu'un a une idée :)

HTML


<!DOCTYPE html>
<html>
<head>
	<title>Labo_4.1</title>
	<meta charset="utf-8">

	<link rel="stylesheet" type="text/css" href="labo_4.1.css">
</head>
<body>

	<header>Ceci est l'en-tête</header>

	<div id="contenu">

		<nav>
			<h2>Navigation</h2>
			<ul>
				<li>Page 1</li>
				<li>Page 2</li>
				<li>Page 3</li>
				<li>Page 4</li>
			</ul>
		</nav>

		<main>
				<p>Lorem ipsum</p>
				<img src="src/150.png"/>
		</main>

		<aside>
			<h2>Photos annexes</h2>
			<img src="src/150.png"/>
			<img src="src/150.png"/>
		</aside>

	</div>

	<footer>Copyright</footer>

	<script type="text/javascript" src="labo_4.1.js"></script>
</body>
</html>

CSS


html, body
{
	height: 100%;
	margin: 0;
	padding: 0;
}

body
{
	margin-left: 5%;
	margin-right: 5%;
}

#contenu
{
	display: flex;
	height: 65%;
	width: 100%;
	justify-content: space-between;
}

header
{
	height: 10%;
	width: 100%;
	background-color: #ffcabc;

	display: flex;
	align-items: center;
	justify-content: space-around;
}

header, nav, main, aside, footer
{
	border: 3px black solid;
	margin: 5px;
}

nav
{
	background-color: #18F3EF;
}

main
{
	background-color: #FFDA00;
	width: 40%;
}

aside
{
	background-color: #F55A5A;
}

footer
{
	height: 10%;
	width: 100%;

	background-color: #FFFF6E;
	display: flex;
	align-items: center;
	justify-content: space-around;
}


https://image.noelshack.com/fichiers/2020/13/2/1585074942-capture.png

Nuagedecube
Nuagedecube
Niveau 25
24 mars 2020 à 20:27:20

Sur Chrome, le header, footer débordent causé par

width:100%

https://image.noelshack.com/fichiers/2020/13/2/1585077945-width.png (avant/après)

Sous forums
  • Aide à l'achat Mac
  • Création de Jeux
  • Linux
  • Création de sites web
  • Programmation
  • Internet
  • Steam Deck
  • Macintosh
  • Hardware
La vidéo du moment