WRInaute discret
Bonjour,
je viens de faire un formulaire mais celui-ci se centre à peut pret bien sous IE mais pas du tout sous firefox. sous FF il reste à gauche.
Ai je oublé une fonction dans mon CSS.
Voici mon code :
Merci par avance
je viens de faire un formulaire mais celui-ci se centre à peut pret bien sous IE mais pas du tout sous firefox. sous FF il reste à gauche.
Ai je oublé une fonction dans mon CSS.
Voici mon code :
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
<style type="text/css">
div#cadrepagedeposer{
width:980px;
top:20px;
margin-top:20px;
border-top: solid #620000 2px;
border-left: solid #620000 2px;
border-right: solid #620000 2px;
border-bottom: solid #620000 2px;
margin:auto;
float:left;
}
* html .threepxfix{
margin-left: 3px;
padding:0px;
}
.cssformdeposer p{
width: 300px;
clear: left;
margin: 0;
padding: 3px 0 3px 0;
padding-left: 180px; /*width of left column containing the label elements*/
text-align:center;
}
.cssformdeposer label{
font-weight: bold;
text-align:right;
float: left;
margin-left: -160px; /*width of left column*/
width: 180px; /*width of labels. Should be smaller than left column (155px) to create some right margin*/
}
.cssformdeposer input[type="text"]{ /*width of text boxes. IE6 does not understand this attribute*/
width: 245px;
}
.cssformdeposer input[type="file"]{ /*width of text boxes. IE6 does not understand this attribute*/
width: 245px;
}
.cssformdeposer select{ /*width of text boxes. IE6 does not understand this attribute*/
width: 250px;
}
.cssformdeposer textarea{
width: 245px;
height: 50px;
}</style>
</head>
<body>
<div id="cadresprincipal">
<div id="cadrepagedeposer">
<form name="deposer" id="deposer" class="cssformdeposer" method="POST" action="inscription.php" onSubmit="return validationformulaire(this)" enctype="multipart/form-data">
<h1><div align="center"><br />Déposer un fichier</div></h1>
<?php if(isset($message2)){ echo "<span style=\"color: #A60000\"> $message2 </span><br />"; } ?>
<p><label for="fichier" class="formulaire1">Fichier </label><input type="file" name="fichierimage" ></p>
<p><label for="titre" class="formulaire1">Titre</label><input name="titre" type="text" /></p>
<p><label for="tag" class="formulaire1">Tag </label><input name="tag" type="text" /></p>
<p><label for="categorie" class="formulaire1">categorie</label><select name="categorie" >
<option value="" > Choisir </option>
</select></p>
<p><label for="commentaire" class="formulaire1">Commentaire</label><textarea name="commentaire" cols="" rows=""><?php if ($anneenaissance!="0") {echo"$anneenaissance"; }?></textarea></p>
</form>
</div>
</div>
</body>
</html>
Merci par avance