I cannot figure out why this won't work? I am trying to get the button to center within the div
. For some reason, not matter what I do the button justifies left within the div
.
Here is my current HTML, which I thought would absolutely work, but no go.
<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>
And here is the CSS that is being addressed
.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;
}
Can anyone find where I went wrong?