I'm attempting to create two buttons in the same line in this code, but it's not working as I want. Take a look below:
<div class="w3-show-inline-block">
<div class="w3-bar">
<button class="btn btn-success" onClick={() => this._filterByYear('2006')}>2006</button>
<button class="btn btn-success" onClick={() => this._filterByYear('2007')}>2007</button>
</div>
</div>
<div class="w3-show-inline-block">
<div class="w3-bar">
<button class="btn btn-success" onClick={() => this._filterByYear('2008')}>2008</button>
<button class="btn btn-success" onClick={() => this._filterByYear('2009')}>2009</button>
In the demo code, you can see there is no space between the two buttons. I want them to appear like this https://ibb.co/rFD6knk
Check out the demo for reference.