http://jsfiddle.net/m9121mxt/
I have an issue with my layout. I'm trying to center the button within the viewmorebutton
element vertically, but margin:auto;
and text-align: center;
are not achieving the desired result. Can anyone advise on how to properly center align the button in the middle?
Thank you!
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!--facebook icon-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
.thirdpage{
height: 90vh;
background-color: #101427;
}
.thirdoutter{
position: relative;
margin: 0 auto;
width: 80%;
height: 100%;
}
.viewmorebutton{
margin:auto;
height: 80%;
text-align: center;
}
</style>
<div class="thirdpage">
<div class="thirdoutter">
<div class="viewmorebutton">
<button type="button" class="btn btn-secondary col-sm-4">VIEW MORE</button>
</div>
</div>
</div>