“Bouton de contour CSS” Réponses codées

boutons de contour bootstrap

In need of a button, but not the hefty background colors they bring? 
Replace the default modifier classes with the .btn-outline-* ones to 
remove all background images and colors on any button.

<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-light">Light</button>
<button type="button" class="btn btn-outline-dark">Dark</button>
Dev

Bouton de contour CSS

.btn {
  border: 2px solid black;
  background-color: white;
  color: black;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
}

/* Green */
.success {
  border-color: #04AA6D;
  color: green;
}

.success:hover {
  background-color: #04AA6D;
  color: white;
}
Azizul7m

Inconvénient du bouton bootstrap

<button type="button" class="btn btn-outline-primary" href="#">Primary</button>
TheDevStar

Réponses similaires à “Bouton de contour CSS”

Questions similaires à “Bouton de contour CSS”

Plus de réponses similaires à “Bouton de contour CSS” dans CSS

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code