[Codage de mon design] Problème de position
Bonjour à tous, et merci d'avance pour votre aide.
Je suis entrain de coder le design de mon site et j'ai un petit prolème :
Dès que je met du texte, un margin-top se met automatiquement sur l'élément :( Par exemple si je met un texte dans un cadre, le texte aura un margin-top, ou le cadre aura un padding-top.
Les liens de la speedbar on un margin-top, et le "Se connecter". Si je rajoute du texte ça fait pareil, c'est pas que sur certains éléments (j’entends élément par <p>, ou <h1>, ect... ) ;)
J'ai tout vérifier et essayer pas mal de trucs mais rien à faire :cry:
Voici mon code html :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="design/design.css" />
<!--[if IE]>
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="design/design_ie.css" />
<![endif]-->
</head>
<body>
<!--
L'ESPACE DU HAUT :
-->
<div id="espace_haut" >
<ul>
<li><a href="#" title="Nombre de connecté" >10 connectés</a></li>
<li><p class="tiret">-</p></li>
<li><a href="#" title="Nombre d'inscrits" >150 inscrits</a></li>
</ul>
</div>
<!--
LE HEADER :
-->
<div id="header" >
<a href="#" ><img src="design/fecesbook.png" alt=""/></a>
<img class="mascotte" src="design/mascotte.png" alt="" />
<div id="speedbar" >
<ul>
<li><a href="#">Accueil</a></li>
<li><img src="design/separation.png" alt="" /></li>
<li><a href="#">Accueil</a></li>
<li><img src="design/separation.png" alt="" /></li>
<li><a href="#">Accueil</a></li>
<li><img src="design/separation.png" alt="" /></li>
<li><a href="#">Accueil</a></li>
<li><img src="design/separation.png" alt="" /></li>
<li><a href="#">Accueil</a></li>
</ul>
</div>
</div>
<div id="menus_gauche" >
<div class="login">
<form method="post" action="#" >
<p>
<label for="pseudo" >Votre nom d'utilisateur :</label>
<input type="text" name="pseudo" id="pseudo"/>
<label for="mot_de_passe" >Votre mot de passe :</label>
<input type="password" name="mot_de_passe" id="mot_de_passe"/>
<input type="submit" value="Valider" />
</p>
</form>
</div>
</div>
<div id="corps" ></div>
<div id="footer" ></div>
</body>
</html> |
Et mon code CSS :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
|
/*
//////////////////////
BODY :
//////////////////////
*/
body
{
margin : 0;
padding : 0;
}
body a
{
text-decoration : none;
color : #1877d5;
}
body a:hover
{
color : #c87b02;
}
body p, strong, h1, h2, h3, h4, h5, h6, label
{
color : white;
}
/*
//////////////////////
ESPACE DU HAUT :
//////////////////////
*/
#espace_haut
{
width : 100%;
height : 1.45em;
background-color : #3edde3;
}
#espace_haut li
{
list-style-type : none;
display : inline;
}
#espace_haut ul
{
margin: 0;
}
.tiret
{
display : inline;
margin-right : 2%;
margin-left : 2%;
}
/*
//////////////////////
LE HEADER :
//////////////////////
*/
#header
{
background-image : url("height_header.png");
background-repeat : repeat-x;
width : 100%;
height : 5.8em;
}
#header a img
{
border : none;
}
#header a:focus
{
outline : 0;
}
.mascotte
{
margin-left : 7%;
}
/*
//////////////////////
LA SPEEDBAR :
//////////////////////
*/
#speedbar ul
{
margin: 0;
padding : 0;
}
#speedbar li
{
list-style-type : none;
display : inline;
}
#speedbar a
{
color : white;
font-size : 1.46em;
}
#speedbar img
{
margin-right : 1.5%;
margin-left : 1.5%;
}
#speedbar
{
height : 1.9em;
border: 2px solid #2d9a9f;
background-color : #3ddce1;
width : 42.8%;
padding-right : 1%;
padding-left : 1%;
float : right;
margin-right : 3.5%;
-khtml-border-radius : 6px;
-moz-border-radius: 6px;
border-radius: 6px;
margin-top : 7.2%;
}
#speedbar, x:-moz-any-link {
width : 43.3%;
}
/*
//////////////////////
LES MENUS DE GAUCHE :
//////////////////////
*/
#menus_gauche
{
margin-left : 1%;
margin-right : 2%;
margin-top : 2%;
width : 21%;
float : left;
}
/* L'espace pour se logger */
.login
{
width : 100%;
border : 1px solid #999999;
padding : 2%;
background-color : #3edde3;
-khtml-border-radius : 3.5px;
-moz-border-radius: 3.5px;
border-radius: 3.5px;
}
.login label
{
display : block;
margin-left : 15%;
}
.login input
{
-khtml-border-radius : 6px;
-moz-border-radius: 6px;
border-radius: 6px;
background-color : #67eef1;
outline : 0;
margin-bottom : 2.5%;
margin-left : 15%;
}
.login input:hover
{
border : outset;
border-color : #eeeeee;
} |
Merci d'avance :ccool: