Ich möchte Symbol auf das div-Element "Rechteck" zentrieren. Jede andere alternative Lösung wird ebenfalls begrüßt.Wie wird das Symbol an der Mitte des div-Elements ausgerichtet?
body {
background-color: black;
}
.rectangle {
width: 125px;
\t height: 125px;
\t -webkit-border-radius: 5px;
\t -moz-border-radius: 5px;
\t border-radius: 5px;
\t background-color: #fff;
}
h3 {
color: #fff;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="rectangle">
<span><i class="fa fa-quora" aria-hidden="true" style="font-size: 75px;" align="center"></i></span>
</div>
<h3>Quora</h3>
für ansprechende Lösung suchen –
http://stackoverflow.com/q/19461521/483779 – Stickers
@putvande: Sein Versuch ist bereits in seiner Frage. –