I am using particle.js library to use particles as background. I want to center the div "container" but I'm unable to do it using flexbox because canvas is getting inserted when I run the html page. Please give a solution for this. Here is the code.
<div id="particles-js" style=" height:100vh ">
<div id="container"> content i want to center </div>
<canvas> Particle js canvas gets inserted here </canvas>
</div>