<div className="modals">
<div className="channelModal" >
<Modal className="modal" isOpen={this.state.isChannelModalOpen} onClose={() => this.closeChannelModal()}>
<h1>Create a Channel</h1>
<p><button onClick={() => this.createChannel()}>Create Channel</button></p>
</Modal>
</div>
</div>
css
.modals {
display: flex;
justify-content: center;
}
I'm not sure why this wont position it in the centre. it is just hugging the left handside. any ideas how to make this display in the centre of the page using flexbox?