Bootstrap-4: Vertikal ausrichten Bild in einem Kreis-Taste

Ich habe einen Kreis-Taste, der muss eine plus Bild in der Mitte. Die Sache ist die, ich kann nicht scheinen, um vertikal ausrichten, dass das Bild ohne Rückgriff auf irgendwelche Ränder.

Gibt es einen einfacheren, Bootstrap-y Weg, dies zu tun?

Hier ist mein code:

CSS:

.btn-circle {
  background-color: blue;
  height: 60px;
  width: 60px;
  border-radius: 50%;
}

/* the button is supposed to be a circle, but for some reason it's not showing up like that in this snippet */

HTML:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<a class="btn btn-circle mr-3" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample"><img src="https://res.cloudinary.com/dt9b7pad3/image/upload/v1499509391/58a2031e6af142ce619ba2a2_plus-symbol_y6vqca.svg" height="20"></a>

InformationsquelleAutor Retros | 2017-07-08
Schreibe einen Kommentar