I'm wondering how on earth I can have three buttons on the same line that are then centered on the line, with ample space between the buttons. I've tried inline-flex, I've tried inline-block, all sorts of stuff and I just can't seem to figure it out.
.buttoncontainer {
box-sizing: border-box;
width: 300px;
height: 200px;
margin: 0 auto;
text-align: center;
display: block;
flex-grow: 2;
}
.inlinebutton {
vertical-align: middle;
height:200px;
width: 350px;
color: #fff;
background-image: url('./profile.jpg');
background-size: cover;
padding: auto;
border: 50px;
border-radius: 5%;
cursor: pointer;
}
Here's the code I'm working with. I was trying to wrap 3 buttons in the .buttoncontainer div and change each of the individual inline buttons to have different code, but I'm wondering if there's a different way to go about it.
I essentially want:
| _____ _____ _____ | | | | | | | | | | |foo | |bar | |foo2| | | ------ ------ ------ | | |
But I have:
| __________ _____ | | | || || | | | |foo ||bar ||foo2| | | ------------------ | | |
(Also sorry if there's something up with the formatting, this is my very first question and I'm not quite sure how to use this site yet)