Marges d'un formulaire

Marges d'un formulaire - HTML/CSS - Programmation

Marsh Posté le 30-06-2005 à 17:37:06    

Bonjour
j'ai sur ma page web une foultitude de formulaires qui se cotoyent gentiment.
 
Sauf qu'il y a comme une marge avant et après chaque balise <form> et </form>
 
comment réduire cet espace? cela est très gênant pour ma mise en page.
 
Merci d'avance

Reply

Marsh Posté le 30-06-2005 à 17:37:06   

Reply

Marsh Posté le 30-06-2005 à 17:40:26    

ben en réglant les marges des formulaires [:petrus75]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-06-2005 à 17:42:33    

form {
margin:0 auto 0 auto;
}
 
là ya plus de marges normalement

Reply

Marsh Posté le 30-06-2005 à 17:45:32    

On peut aussi utiliser le shorthand
form {
    margin: 0 auto;
}
qui fait exactement la même chose
 
et comme les marges latérales ne sont pas nécessaires
form {
    margin: 0;
}


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-06-2005 à 17:49:49    

merci bien mes amis :)

Reply

Marsh Posté le 30-06-2005 à 17:52:10    

form{
  margin:0px;
}

Reply

Marsh Posté le 30-06-2005 à 17:58:09    

gatsusat a écrit :

form{
  margin:0px;
}


non


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-06-2005 à 18:21:29    

ben pourquoi 0 et non 0px ????
 
J'ai vu plusieurs fois FlorentG demander ce que c'était : des choux des patates, des pommes ?

Reply

Marsh Posté le 30-06-2005 à 18:27:22    

gatsusat a écrit :

ben pourquoi 0 et non 0px ????
 
J'ai vu plusieurs fois FlorentG demander ce que c'était : des choux des patates, des pommes ?


Parce que 0 pour une distance c'est toujours la même chose, le même point, quelle que soit l'unité. En mètres, miles, inches, pixels ou picas, 0 c'est toujours le même point, contrairement aux degrés de températures (qui n'ont pas tous le même 0).
 
Donc préciser l'unité quand la valeur est nulle est inutile.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 30-06-2005 à 18:39:10    

oki merki papa

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed