I've tried inline and inline-block, but it's not working.
I've also tried setting a width and height for buttonsDiv
in case not having one is somehow causing it to mess up.
I'm a little confused here, what is the way to get these buttons side by side rather than on top of each other?
https://codepen.io/hiarooo/pen/vYxYdOj
HTML
<div class="buttonsDiv">
<h4><a href="#" class="fancyButton">Button 1</a></h4>
<h4><a href="#" class="fancyButton">Button 2</a></h4>
</div>
CSS
/*FancyButtonStuff*/
.buttonsDiv{
}
.buttonContainer{
margin-top:100px;
text-align:center;
}
h4{
color:rgba(69, 69, 69, 1);
/*line-height:2em;*/
}
/* BUTTON CSS
------------------------------------------- */
a.fancyButton{
display:inline-block;
/*font:normal normal 300 1.3em 'Open Sans';*/
font-size:0.8em;
text-decoration:none;
color:rgba(28, 190, 131, 1);
background-color:transparent;
border:1px solid rgba(28, 190, 131, 1);
border-radius:100px;
padding: .3em 1.2em;
margin:5px;
background-size: 200% 100%;
background-image: linear-gradient(to right, transparent 50%, rgba(28, 190, 131, 1) 50%);
transition: background-position .3s cubic-bezier(0.19, 1, 0.22, 1) .1s, color .5s ease 0s, background-color .5s ease;
}
a.fancyButton:hover{
color:rgba(255, 255, 255, 1);
background-color:rgba(28, 190, 131, 1);
background-position: -100% 100%;
}