Ich kann nicht herausfinden, warum das nicht funktioniert? Ich versuche den Knopf innerhalb der div
zu zentrieren. Aus irgendeinem Grund, egal was ich mache, rechtfertigt der Knopf links innerhalb der div
.Kann nicht zentrieren Ausrichtung Knopf
Hier ist meine aktuelle HTML, die ich dachte, würde absolut funktionieren, aber nicht gehen.
<div class="row block well" id="section3">
<h1 style="text-align:center">Client Testimonials</h1>
<div class="col-md-3"></div>
<div class="col-md-6">
<p id="quote">Delighted with my experience. Easy and comfortable. I have the utmost confidence in Scott and trust him to help me find the right vehicle for my self, family members and friends I have referred. I just purchased my 4th car from him.<br>
<button class="buttonz" onclick="cycle()"><span>More </span></button>
</p>
</div>
<div class="col-md-3"></div>
</div>
Und hier ist die CSS, die
.buttonz {
display: inline-block;
border-radius: 10px;
background-color: #b5cfc1;
border: none;
color: #FFFFFF;
text-align: center;
font-size: 28px;
padding: 20px;
width: 200px;
transition: all 0.5s;
cursor: pointer;
margin: auto;
}
.buttonz span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.buttonz span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.buttonz:hover span {
padding-right: 25px;
}
.buttonz:hover span:after {
opacity: 1;
right: 0;
}
jemand, wo ich falsch adressiert wird ging gefunden?
Vielen Dank für den Hinweis.Ich habe das versucht, aber wie unten erwähnt, lag es daran, dass ich zwei verschiedene Display-Zuweisungen hatte. – RhinoTekMN