CSS pour champ de formulaire, problème avec la règle margin

More
5 months 3 weeks ago - 4 months 1 week ago #76525 by carabao
Bonjour

J'ai un petit souci avec les règles CSS pour les champs de formulaire .

Exemple ici :  www.asbl-des-locaux.be/recherche

le champ recherche;
règle CSS appliquée :

  1.  background: #ffffff;
  2. border: #c7c7c7 1px solid;
  3. margin-top: 1px;
  4. margin-right: 10px;
  5. margin-bottom: 1px;
  6. margin-left: 3px;
  7. padding: 2px;
  8. font-size: 1.7rem;

Je ne parviens pas à mettre une marge à droite entre le champ de formulaire et le bouton Recherche.  Si je mets margin-right:50px, le bouton touche toujours le champ. Si j'augmente la marge, le champ de formulaire s'allonge mais le bouton reste collé au champ.

Conflit de règle ?  

PS TC 5.6.7

Merci
Last edit: 4 months 1 week ago by carabao.

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago #76529 by ced1870
Salut
Les CSS sont parfois capricieux, essaie avec ce code et dis moi si c'est bon
Code:
fieldset.com-finder__search button[type="submit"] { margin-left: 10px !important; }

CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
5 months 2 weeks ago - 5 months 2 weeks ago #76556 by carabao
Bonjour

Excusez-moi pour la réponse tardive, avec cette règle, c'est OK. Il y a bien une marge entre le champ recherche et le bouton recherche.

Merci
Last edit: 5 months 2 weeks ago by carabao.

Please Log in or Create an account to join the conversation.

Time to create page: 0.200 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1879 guests and 2 members online