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 avec mon desyn en CSS

News jeu

Expeditions: Samurai veut révolutionner le RPG tactique avec une aventure entièrement jouable en coop

Voir
Zaxid
Zaxid
Niveau 8
16 juin 2007 à 11:45:44

Salut, j´ai un problème avec mon CSS que je ne comprend pas, mon but est de faire un desyn extensible (en pourcentage) avec un header en haut (div #header), un menu a gauche (div #menu), le corp au centre (div #corps), et un menu a droite (#tuto).
Voici mon css :

body
{
width: 100%;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
background-image: url("images/fond.png");
}

  1. header

{
width: 100%;
height: 100px;
background-image: url("images/banniere.png");
background-repeat: no-repeat;
margin-bottom: 10px;
}

  1. menu

{
float: left;
width: 20%;
margin-left: 3%;
margin-right: 2%;
}

  1. corps

{
margin: auto;
margin-bottom: 20px;
padding: 5px;
width: 50%;
background-image: url("images/motif.png");
background-repeat: repeat-x;
border: 1px solid black;
}

  1. tuto

{
float: right;
width: 20%;
margin-left: 3%;
margin-right: 2%;
}

Bref rien de complex, pourtant quand je l´applique mon #menu est bien flotant mais DANS le corps qui n´est lui même pas au centre mais a droite
http://img168.imageshack.ck.us/img168/7474/desynfx8.jpg

Bref j´aimerais que quelqu´un m´explique comment resoudre ça ...
Voici une partie du code html qui va avec (pour montré que ce n´est pas juste un problème d´inclusion dans un block, enfin jcroi ...).

<div id="menu">
<h3>Menu</h3>
<ul>
<li><a href="page1.html">Acceuil</a></li>
<li><a href="page2.html">Equipe</a></li>
<li><a href="page3.html">Forum</a></li>
<li><a href="page4.html">Livre d´or</a></li>
</ul>
</div>

<div id="tuto">

<h3>Tutorial</h3>
<h2>Guitare classique</h2>
<ul>
<li><a href="Ga/Chap1.php">Chapitre 1</a></li>
<li><a href="Ga/Chap2.php">Chapitre 2</a></li>
<li><a href="Ga/Chap3.php">Chapitre 3</a></li>
<li><a href="Ga/Chap4.php">Chapitre 4</a></li>
</ul>

<h2> Guitare électrique</h2>
<ul>
<li><a href="Ge/chap1.php">Chapitre 1: Introduction</a></li>
<li><a href="Ge/chap2.php">Chapitre 2: La main droite</a></li>
<li><a href="Ge/chap3.php">Chapitre 3: La main gauche</a></li>
<li><a href="Ge/chap4.php">Chapitre 4: Entraînement</a></li>
<li><a href="Ge/chap5.php">Chapitre 5: Un peu de technique</a></li>
</ul>
</div>

<div id="corps">

Ici il y a le text

</div>

Pipadin
Pipadin
Niveau 10
16 juin 2007 à 11:48:04

Un design on dit :)

axeee
axeee
Niveau 9
17 juin 2007 à 12:21:51

lol c´est quoi ? Du latin !? essaye de ne pas mettre margin: auto et de mettre margin-left: 1px;

Zaxid
Zaxid
Niveau 8
17 juin 2007 à 22:05:15

Non c´est un Lorem Ipsum :
http://fr.wikipedia.org/wiki/Lorem_ipsum

Sinon le margin-left ca a l´air de rien changer.

Zaxid
Zaxid
Niveau 8
18 juin 2007 à 01:31:30

Laissez tombé j´ai résolue mon problème ^^
:merci:

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